diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-02-03 18:33:57 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2004-02-03 18:33:57 -0800 |
| commit | c0ece855ddf1b0d8775dcf1465cafcb723add6e1 (patch) | |
| tree | a292201f71ae5109d663f6733a00172519ba0d16 /drivers/input/evdev.c | |
| parent | 8159ad9b6b2d6713047abc4d6fae2a3183337b63 (diff) | |
[PATCH] gcc-3.5: keyboard.c fixes
drivers/char/keyboard.c:205: warning: use of conditional expressions as lvalues is deprecated
Diffstat (limited to 'drivers/input/evdev.c')
| -rw-r--r-- | drivers/input/evdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index 8a165f585f0e..0e16eeeb9e55 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c @@ -232,7 +232,7 @@ static int evdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd, if (t < 0 || t > dev->keycodemax || !dev->keycodesize) return -EINVAL; if (get_user(v, ((int *) arg) + 1)) return -EFAULT; u = INPUT_KEYCODE(dev, t); - INPUT_KEYCODE(dev, t) = v; + SET_INPUT_KEYCODE(dev, t, v); for (i = 0; i < dev->keycodemax; i++) if (v == u) break; if (i == dev->keycodemax) clear_bit(u, dev->keybit); set_bit(v, dev->keybit); |
