Commit f3e2b382 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Pavel Machek
Browse files

leds: lgm-sso: Drop duplicate NULL check for GPIO operations



Since GPIO operations are NULL-aware, we don't need to duplicate
this check. Remove it and fold the rest of the code.

Signed-off-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 2cbbe9c5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -258,7 +258,7 @@ static void sso_led_brightness_set(struct led_classdev *led_cdev,
				   1 << desc->pin);
				   1 << desc->pin);
	}
	}


	if (!desc->hw_trig && led->gpiod)
	if (!desc->hw_trig)
		gpiod_set_value(led->gpiod, val);
		gpiod_set_value(led->gpiod, val);
}
}