Skip to content

Commit 7eb99a3

Browse files
author
Lee Jones
committed
video: backlight: cr_bllcd: Remove unused variable 'intensity'
Fixes the following kernel build warning: drivers/video/backlight/cr_bllcd.c: In function ‘cr_backlight_set_intensity’: drivers/video/backlight/cr_bllcd.c:62:6: warning: unused variable ‘intensity’ [-Wunused-variable] 62 | int intensity = bd->props.brightness; | ^~~~~~~~~ Cc: Jingoo Han <[email protected]> Cc: Bartlomiej Zolnierkiewicz <[email protected]> Cc: [email protected] Cc: [email protected] Fixes: 24d3461 ("backlight: cr_bllcd: Introduce gpio-backlight semantics") Reviewed-by: Sam Ravnborg <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Signed-off-by: Lee Jones <[email protected]>
1 parent b6539a1 commit 7eb99a3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/video/backlight/cr_bllcd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ struct cr_panel {
5959

6060
static int cr_backlight_set_intensity(struct backlight_device *bd)
6161
{
62-
int intensity = bd->props.brightness;
6362
u32 addr = gpio_bar + CRVML_PANEL_PORT;
6463
u32 cur = inl(addr);
6564

0 commit comments

Comments
 (0)