Style guide cleanup
@@ -442,22 +442,19 @@ tsl2591_get_data(struct sensor_itf *itf, uint16_t *broadband, uint16_t *ir)
if (igain < 25) {
/* Gain 1x, return the current sample */
return 0;
- }
- else if (igain < 428) {
+ } else if (igain < 428) {
/* Set gain to ~25x */
rc = tsl2591_set_gain(itf, TSL2591_LIGHT_GAIN_MED);
if (rc) {
goto err;
}
- }
- else if (igain < 9876) {
+ } else if (igain < 9876) {
/* Set gain to ~428x */
rc = tsl2591_set_gain(itf, TSL2591_LIGHT_GAIN_HIGH);
if (rc) {
goto err;
}
- }
- else {
+ } else {
/* Set gain to ~9876x */
rc = tsl2591_set_gain(itf, TSL2591_LIGHT_GAIN_MAX);
if (rc) {
