diff options
author | Anton Gerasimov <anton.gerasimov@openmailbox.org> | 2015-06-13 22:23:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-13 14:50:10 -0700 |
commit | bc573c5131f36339f54385c5a9f87cff7c2b693c (patch) | |
tree | 6cb2a3d95552d111c7764de53b02722bbf623aa6 /drivers/staging/fbtft | |
parent | 8e56b9555111f080880679e1f42d51ae899d123b (diff) |
staging: fbtft: eliminate code duplication
Eliminated code duplication when searching for a display.
Signed-off-by: Anton Gerasimov <anton.gerasimov@openmailbox.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft')
-rw-r--r-- | drivers/staging/fbtft/fbtft_device.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/fbtft/fbtft_device.c b/drivers/staging/fbtft/fbtft_device.c index e5aa5332f7d4..211d504901f2 100644 --- a/drivers/staging/fbtft/fbtft_device.c +++ b/drivers/staging/fbtft/fbtft_device.c @@ -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; } } |