From: Andre Guedes Date: Wed, 25 Jun 2014 19:44:45 +0000 (-0300) Subject: Bluetooth: Use macro instead of hard-coded value X-Git-Tag: v3.17-rc1~106^2~73^2~87^2~163 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dbbfa2ab7a2a508fd6ad2ce08f7f34c3041f51ef;p=karo-tx-linux.git Bluetooth: Use macro instead of hard-coded value This patch replaces the hard-coded value in hci_bdaddr_is_rpa() helper by the corresponding macro ADDR_LE_DEV_RANDOM. Signed-off-by: Andre Guedes Signed-off-by: Marcel Holtmann --- diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 0b0597d81827..dda7f00c07c5 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -1155,7 +1155,7 @@ static inline bool eir_has_data_type(u8 *data, size_t data_len, u8 type) static inline bool hci_bdaddr_is_rpa(bdaddr_t *bdaddr, u8 addr_type) { - if (addr_type != 0x01) + if (addr_type != ADDR_LE_DEV_RANDOM) return false; if ((bdaddr->b[5] & 0xc0) == 0x40)