Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: mgmt: Fix timeout type

Silence sparse warnings:
net/bluetooth/mgmt.c:865:19: warning: cast to restricted __le16

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>

authored by

Andrei Emeltchenko and committed by
Gustavo Padovan
c732a2af 76ec9de8

+1 -1
+1 -1
include/net/bluetooth/mgmt.h
··· 117 117 #define MGMT_OP_SET_DISCOVERABLE 0x0006 118 118 struct mgmt_cp_set_discoverable { 119 119 __u8 val; 120 - __u16 timeout; 120 + __le16 timeout; 121 121 } __packed; 122 122 #define MGMT_SET_DISCOVERABLE_SIZE 3 123 123