]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
HID: core: don't use negative operands when shift
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Tue, 13 Jun 2017 09:22:22 +0000 (12:22 +0300)
committerJiri Kosina <jkosina@suse.cz>
Tue, 13 Jun 2017 12:29:20 +0000 (14:29 +0200)
commit08585e43d22802666a466af1ca5795085e74d60d
treecf43239899fe85d0e70dff3f3f24fe97276a1430
parent91b9ae48aadd7e634161372b0bc3ffc88a050e8b
HID: core: don't use negative operands when shift

The recent C standard in 6.5.7 paragraph 4 defines that operands for
bitwise shift operators should be non-negative, otherwise it's an
undefined behaviour.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c