Skip to contentSkip to conversation

iio: humidity: hdc100x: removed unnecessary else after return

PATCH Greg KH 1 participant 1 message Mar 21, 2016 1 message not in the archive

lore
Share & tools
lore

Greg KH

author
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines · Juliana Rodrigues

This patch removes an else and a break after a return, fixing a checkpatch.pl warning.

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

(quoted diff) +2 -0
+                       return IIO_VAL_FRACTIONAL;
+               } else {
---
 drivers/iio/humidity/hdc100x.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

I can not accept patches for outreachy outside of drivers/staging/ sorry.

greg k-h