backlight: aw99703: Remove unused variable

drivers/backlight/aw99703/leds_aw99703.c:705:27:
 error: variable 'bl_dev' set but not used [-Werror,-Wunused-but-set-variable]
  705 |         struct backlight_device *bl_dev;

Change-Id: Ic54933366a36805939160423188595c81e2711e6
Signed-off-by: Sevenrock <sevenrock@hotmail.de>
This commit is contained in:
Sevenrock 2024-12-08 23:36:44 +01:00 • committed by Michael Bestas
commit 52575eb931
No known key found for this signature in database

View file

@ -702,7 +702,6 @@ static int aw99703_probe(struct i2c_client *client,
{
struct aw99703_data *drvdata;
#ifdef KERNEL_ABOVE_4_14
struct backlight_device *bl_dev;
struct backlight_properties props;
#endif
int err = 0;
@ -761,7 +760,7 @@ static int aw99703_probe(struct i2c_client *client,
props.type = BACKLIGHT_PLATFORM;
props.brightness = MAX_BRIGHTNESS;
props.max_brightness = MAX_BRIGHTNESS;
bl_dev = backlight_device_register(AW99703_NAME, &client->dev,
backlight_device_register(AW99703_NAME, &client->dev,
drvdata, &aw99703_bl_ops, &props);
#endif