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

Bluetooth: Convert SMP flags into an enum

There's no reason to have explicit values for these flags. Convert them
to an enum to be consistent with other similar flags.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

authored by

Johan Hedberg and committed by
Marcel Holtmann
533e35d4 ddf4ba07

+7 -5
+7 -5
net/bluetooth/smp.c
··· 35 35 36 36 #define AUTH_REQ_MASK 0x07 37 37 38 - #define SMP_FLAG_TK_VALID 1 39 - #define SMP_FLAG_CFM_PENDING 2 40 - #define SMP_FLAG_MITM_AUTH 3 41 - #define SMP_FLAG_COMPLETE 4 42 - #define SMP_FLAG_INITIATOR 5 38 + enum { 39 + SMP_FLAG_TK_VALID, 40 + SMP_FLAG_CFM_PENDING, 41 + SMP_FLAG_MITM_AUTH, 42 + SMP_FLAG_COMPLETE, 43 + SMP_FLAG_INITIATOR, 44 + }; 43 45 44 46 struct smp_chan { 45 47 struct l2cap_conn *conn;