]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: trivial: Remove sparse warnings
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Wed, 14 Mar 2012 16:54:15 +0000 (18:54 +0200)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 28 Mar 2012 14:39:09 +0000 (11:39 -0300)
commit88ace51033416d9ba1dd7dcb2d1170873166b170
tree51dd9ea4e3c8eaafd0caed59b53aba0545968c2f
parent4689ca13b4ce97ef7d29e6ecaec2fbf05f753258
Bluetooth: trivial: Remove sparse warnings

Fix sparse warnings related to incorrect type in assignment and static
symbol.  Also use const keyword. Warnings are shown below:

...
net/bluetooth/mgmt.c:305:28: warning: incorrect type in assignment
(different base types)
net/bluetooth/mgmt.c:305:28:    expected unsigned short [usertype] *opcode
net/bluetooth/mgmt.c:305:28:    got restricted __le16 *<noident>
...
net/bluetooth/mgmt.c:2609:3: warning: symbol 'mgmt_handlers' was not declared.
Should it be static?
...

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/mgmt.c