]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
Bluetooth: Convert SMP flags into an enum
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 16 Jun 2014 16:25:18 +0000 (19:25 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:42 +0000 (17:42 +0200)
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>
net/bluetooth/smp.c

index 78b9573f4a73f04ffc407b0fb13ae32b2be686ec..72c5aa05a489537289273f599d3c8affa5649a87 100644 (file)
 
 #define AUTH_REQ_MASK   0x07
 
-#define SMP_FLAG_TK_VALID      1
-#define SMP_FLAG_CFM_PENDING   2
-#define SMP_FLAG_MITM_AUTH     3
-#define SMP_FLAG_COMPLETE      4
-#define SMP_FLAG_INITIATOR     5
+enum {
+       SMP_FLAG_TK_VALID,
+       SMP_FLAG_CFM_PENDING,
+       SMP_FLAG_MITM_AUTH,
+       SMP_FLAG_COMPLETE,
+       SMP_FLAG_INITIATOR,
+};
 
 struct smp_chan {
        struct l2cap_conn *conn;