From: Narcisa Ana Maria Vasile Date: Tue, 28 Feb 2017 15:50:06 +0000 (+0200) Subject: staging: fbtft: Merged two identical conditionals into one. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2fad31423d1db01a341b4a7fac697e1af128c281;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: fbtft: Merged two identical conditionals into one. Merged two if conditionals into a single one, since they had exactly the same condition. Signed-off-by: Narcisa Ana Maria Vasile Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fbtft/fbtft_device.c b/drivers/staging/fbtft/fbtft_device.c index c164d0fd6708..0d974738c1c4 100644 --- a/drivers/staging/fbtft/fbtft_device.c +++ b/drivers/staging/fbtft/fbtft_device.c @@ -1448,11 +1448,10 @@ static int __init fbtft_device_init(void) if (fbtft_device_param_gpios[0].name[0]) gpio = fbtft_device_param_gpios; - if (verbose > 2) + if (verbose > 2) { pr_spi_devices(); /* print list of registered SPI devices */ - - if (verbose > 2) pr_p_devices(); /* print list of 'fb' platform devices */ + } pr_debug("name='%s', busnum=%d, cs=%d\n", name, busnum, cs);