]> git.baikalelectronics.ru Git - kernel.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, 9 May 2012 03:41:32 +0000 (00:41 -0300)
commit0c18702c4b04ae0333cea19e7c4eb0c2ab14ac17
tree461eefd8dc453b46d1bf4f2f5aa3706a15424c7b
parent87777dc4fe022565b9317d49382438e5c17bfb41
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