Skip to content

Commit

Permalink
video: fbdev: gbefb: Fix set but not used warning
Browse files Browse the repository at this point in the history
The variable "x" was set but never used.
Drop the redundant assignments.

Signed-off-by: Sam Ravnborg <[email protected]>
Acked-by: Thomas Zimmermann <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
sravnborg committed Dec 8, 2020
1 parent 54f5726 commit 96a84fc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/video/fbdev/gbefb.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static void gbe_reset(void)
static void gbe_turn_off(void)
{
int i;
unsigned int val, x, y, vpixen_off;
unsigned int val, y, vpixen_off;

gbe_turned_on = 0;

Expand Down Expand Up @@ -249,7 +249,6 @@ static void gbe_turn_off(void)

for (i = 0; i < 100000; i++) {
val = gbe->vt_xy;
x = GET_GBE_FIELD(VT_XY, X, val);
y = GET_GBE_FIELD(VT_XY, Y, val);
if (y < vpixen_off)
break;
Expand All @@ -260,7 +259,6 @@ static void gbe_turn_off(void)
"gbefb: wait for vpixen_off timed out\n");
for (i = 0; i < 10000; i++) {
val = gbe->vt_xy;
x = GET_GBE_FIELD(VT_XY, X, val);
y = GET_GBE_FIELD(VT_XY, Y, val);
if (y > vpixen_off)
break;
Expand Down

0 comments on commit 96a84fc

Please sign in to comment.