[PATCH 4/4] Drivers:iio:adc: else is not generally useful after a break or return

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Venkat Prashanth B U <venkat.prashanth2498@xxxxxxxxx>

Fixes checkpatch warnings:
WARNING: else is not generally useful after a break or return

Signed-off-by: Venkat Prashanth B U <venkat.prashanth2498@xxxxxxxxx>
---
 drivers/iio/adc/at91_adc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index 7b40925..da18c04 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -939,7 +939,6 @@ static int at91_adc_probe_dt(struct at91_adc_state *st,
 	/* Check if touchscreen is supported. */
 	if (st->caps->has_ts)
 		return at91_adc_probe_dt_ts(node, st, &idev->dev);
-	else
 		dev_info(&idev->dev, "not support touchscreen in the adc compatible string.\n");

 	return 0;
--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux