Commit bc573c51 authored by Anton Gerasimov's avatar Anton Gerasimov Committed by Greg Kroah-Hartman
Browse files

staging: fbtft: eliminate code duplication



Eliminated code duplication when searching for a display.
Signed-off-by: default avatarAnton Gerasimov <anton.gerasimov@openmailbox.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8e56b955
......@@ -1421,8 +1421,6 @@ static int __init fbtft_device_init(void)
": failed to register SPI device\n");
return ret;
}
found = true;
break;
} else {
ret = platform_device_register(p_device);
if (ret < 0) {
......@@ -1431,9 +1429,9 @@ static int __init fbtft_device_init(void)
ret);
return ret;
}
found = true;
break;
}
found = true;
break;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment