mirror of
https://github.com/torvalds/linux.git
synced 2024-12-19 09:32:32 +00:00
Staging: iio: Remove unnecessory immediate else after return statement
This patch fixes following checkpatch.pl warning: WARNING: else is not generally useful after a break or return Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com> Acked-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7bf6513eeb
commit
da96aecdc5
@ -118,7 +118,6 @@ static ssize_t ad7816_show_mode(struct device *dev,
|
||||
|
||||
if (chip->mode)
|
||||
return sprintf(buf, "power-save\n");
|
||||
else
|
||||
return sprintf(buf, "full\n");
|
||||
}
|
||||
|
||||
@ -226,7 +225,7 @@ static ssize_t ad7816_show_value(struct device *dev,
|
||||
if (value < 0)
|
||||
data = (1 << AD7816_TEMP_FLOAT_OFFSET) - data;
|
||||
return sprintf(buf, "%d.%.2d\n", value, data * 25);
|
||||
} else
|
||||
}
|
||||
return sprintf(buf, "%u\n", data);
|
||||
}
|
||||
|
||||
@ -275,7 +274,7 @@ static ssize_t ad7816_show_oti(struct device *dev,
|
||||
(chip->oti_data[chip->channel_id] -
|
||||
AD7816_BOUND_VALUE_BASE);
|
||||
return sprintf(buf, "%d\n", value);
|
||||
} else
|
||||
}
|
||||
return sprintf(buf, "%u\n", chip->oti_data[chip->channel_id]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user