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, 9 May 2012 03:41:32 +0000 (00:41 -0300)
commit2e3c35ead821498f5b0a5b6c62365fbb187420fc
tree461eefd8dc453b46d1bf4f2f5aa3706a15424c7b
parent1f350c8724881fe6b1be9aa68d1e49508a6f8ab9
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