Skip to content

Commit

Permalink
Input: evdev - fix some sparse warnings (signedness, shadowing)
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dmitry Torokhov committed May 3, 2007
1 parent 7816723 commit ce305b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/input/evdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ static long evdev_ioctl_handler(struct file *file, unsigned int cmd,

if ((_IOC_NR(cmd) & ~EV_MAX) == _IOC_NR(EVIOCGBIT(0,0))) {

long *bits;
unsigned long *bits;
int len;

switch (_IOC_NR(cmd) & EV_MAX) {
Expand Down Expand Up @@ -557,7 +557,7 @@ static long evdev_ioctl_handler(struct file *file, unsigned int cmd,

if ((_IOC_NR(cmd) & ~ABS_MAX) == _IOC_NR(EVIOCGABS(0))) {

int t = _IOC_NR(cmd) & ABS_MAX;
t = _IOC_NR(cmd) & ABS_MAX;

abs.value = dev->abs[t];
abs.minimum = dev->absmin[t];
Expand All @@ -577,7 +577,7 @@ static long evdev_ioctl_handler(struct file *file, unsigned int cmd,

if ((_IOC_NR(cmd) & ~ABS_MAX) == _IOC_NR(EVIOCSABS(0))) {

int t = _IOC_NR(cmd) & ABS_MAX;
t = _IOC_NR(cmd) & ABS_MAX;

if (copy_from_user(&abs, p, sizeof(struct input_absinfo)))
return -EFAULT;
Expand Down

0 comments on commit ce305b6

Please sign in to comment.