Skip to content

Commit

Permalink
staging: panel: Fixed checkpatch warning about simple_strtoul()
Browse files Browse the repository at this point in the history
Fixed the checkpatch warning about sing simple_strtoul instead of
kstrtoul() in panel.c.

Signed-off-by: Pelle Windestam <iceaway@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Pelle Windestam authored and Greg Kroah-Hartman committed Sep 6, 2011
1 parent 3cecd92 commit 1299570
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions drivers/staging/panel/panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1179,16 +1179,14 @@ static inline int handle_lcd_special_code(void)
break;

while (*esc) {
char *endp;

if (*esc == 'x') {
esc++;
lcd_addr_x = simple_strtoul(esc, &endp, 10);
esc = endp;
if (kstrtoul(esc, 10, &lcd_addr_x) < 0)
break;
} else if (*esc == 'y') {
esc++;
lcd_addr_y = simple_strtoul(esc, &endp, 10);
esc = endp;
if (kstrtoul(esc, 10, &lcd_addr_y) < 0)
break;
} else
break;
}
Expand Down

0 comments on commit 1299570

Please sign in to comment.