diff options
author | David Sterba <dsterba@suse.cz> | 2010-12-27 16:27:43 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-12-27 16:38:16 +0100 |
commit | 86280a208825d55ba988420b6b0ed2d6b9ec80f8 (patch) | |
tree | a8b4675187a8198567cbe0286dcaffb3c8379bfe | |
parent | c25bcd340033bf5b8dc30c16a99e64259f099446 (diff) | |
download | op-kernel-dev-86280a208825d55ba988420b6b0ed2d6b9ec80f8.zip op-kernel-dev-86280a208825d55ba988420b6b0ed2d6b9ec80f8.tar.gz |
HID: picolcd: fix misuse of logical operation in place of bitop
CC: Bruno Prémont <bonbons@linux-vserver.org>
CC: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/hid-picolcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-picolcd.c b/drivers/hid/hid-picolcd.c index bc2e077..0aff3cd 100644 --- a/drivers/hid/hid-picolcd.c +++ b/drivers/hid/hid-picolcd.c @@ -1544,7 +1544,7 @@ static ssize_t picolcd_debug_eeprom_read(struct file *f, char __user *u, /* prepare buffer with info about what we want to read (addr & len) */ raw_data[0] = *off & 0xff; - raw_data[1] = (*off >> 8) && 0xff; + raw_data[1] = (*off >> 8) & 0xff; raw_data[2] = s < 20 ? s : 20; if (*off + raw_data[2] > 0xff) raw_data[2] = 0x100 - *off; @@ -1583,7 +1583,7 @@ static ssize_t picolcd_debug_eeprom_write(struct file *f, const char __user *u, memset(raw_data, 0, sizeof(raw_data)); raw_data[0] = *off & 0xff; - raw_data[1] = (*off >> 8) && 0xff; + raw_data[1] = (*off >> 8) & 0xff; raw_data[2] = s < 20 ? s : 20; if (*off + raw_data[2] > 0xff) raw_data[2] = 0x100 - *off; |