aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fbtft_device.c
diff options
context:
space:
mode:
authorAnton Gerasimov <anton.gerasimov@openmailbox.org>2015-06-13 22:23:53 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-13 14:50:10 -0700
commitbc573c5131f36339f54385c5a9f87cff7c2b693c (patch)
tree6cb2a3d95552d111c7764de53b02722bbf623aa6 /drivers/staging/fbtft/fbtft_device.c
parentstaging: fbtft: remove unnecessary spaces before tabs (diff)
downloadlinux-dev-bc573c5131f36339f54385c5a9f87cff7c2b693c.tar.xz
linux-dev-bc573c5131f36339f54385c5a9f87cff7c2b693c.zip
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/fbtft_device.c')
-rw-r--r--drivers/staging/fbtft/fbtft_device.c6
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;
}
}