]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix sparse warning from HID new leds handling
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 30 Jul 2014 06:08:45 +0000 (08:08 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 30 Jul 2014 17:28:41 +0000 (19:28 +0200)
commite0f796295399c29917b0492b58055a371b06760f
tree22310a07d0f2a91cd366ab9a4b9c62592f2165d0
parent017b1833963c8d59d549484b512333b27ba10578
Bluetooth: Fix sparse warning from HID new leds handling

The new leds bit handling produces this spares warning.

  CHECK   net/bluetooth/hidp/core.c
net/bluetooth/hidp/core.c:156:60: warning: dubious: x | !y

Just fix it by doing an explicit x << 0 shift operation.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hidp/core.c