mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
HID: sony: remove unneeded WARN_ON() in sony_leds_init()
This commit removes the unneeded WARN_ON() macro usage in sony_leds_init(), this is unneeded because the sony_leds_init() function call is already gated behind a SONY_LED_SUPPORT check in sony_input_configured() Signed-off-by: Rosalie Wanders <rosalie@mailbox.org> Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
80c4bbb2b3
commit
0f2b8466fb
|
|
@ -1640,9 +1640,6 @@ static int sony_leds_init(struct sony_sc *sc)
|
|||
u8 max_brightness[MAX_LEDS] = { [0 ... (MAX_LEDS - 1)] = 1 };
|
||||
u8 use_hw_blink[MAX_LEDS] = { 0 };
|
||||
|
||||
if (WARN_ON(!(sc->quirks & SONY_LED_SUPPORT)))
|
||||
return -EINVAL;
|
||||
|
||||
if (sc->quirks & BUZZ_CONTROLLER) {
|
||||
sc->led_count = 4;
|
||||
use_color_names = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user