Skip to content

Commit

Permalink
usb: sisusb_con.c: fix shadows sparse warning
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed May 20, 2010
1 parent 7d7917b commit 993e33b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/usb/misc/sisusbvga/sisusb_con.c
Original file line number Diff line number Diff line change
Expand Up @@ -1187,9 +1187,9 @@ sisusbcon_do_font_op(struct sisusb_usb_data *sisusb, int set, int slot,
* And so is the hi_font_mask.
*/
for (i = 0; i < MAX_NR_CONSOLES; i++) {
struct vc_data *c = vc_cons[i].d;
if (c && c->vc_sw == &sisusb_con)
c->vc_hi_font_mask = ch512 ? 0x0800 : 0;
struct vc_data *d = vc_cons[i].d;
if (d && d->vc_sw == &sisusb_con)
d->vc_hi_font_mask = ch512 ? 0x0800 : 0;
}

sisusb->current_font_512 = ch512;
Expand Down Expand Up @@ -1249,7 +1249,7 @@ sisusbcon_do_font_op(struct sisusb_usb_data *sisusb, int set, int slot,
mutex_unlock(&sisusb->lock);

if (dorecalc && c) {
int i, rows = c->vc_scan_lines / fh;
int rows = c->vc_scan_lines / fh;

/* Now adjust our consoles' size */

Expand Down

0 comments on commit 993e33b

Please sign in to comment.