[PATCH] net/bluetooth: remove __get_channel/dir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These 2 macros are never used from first git commit Linux-2.6.12-rc2. So
better to remove them.

Signed-off-by: Alex Shi <alex.shi@xxxxxxxxxxxxxxxxx>
Cc: Marcel Holtmann <marcel@xxxxxxxxxxxx> 
Cc: Johan Hedberg <johan.hedberg@xxxxxxxxx> 
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx> 
Cc: "Gustavo A. R. Silva" <gustavo@xxxxxxxxxxxxxx> 
Cc: linux-bluetooth@xxxxxxxxxxxxxxx 
Cc: netdev@xxxxxxxxxxxxxxx 
Cc: linux-kernel@xxxxxxxxxxxxxxx 
---
 net/bluetooth/rfcomm/core.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c
index 3a9e9d9670be..825adff79f13 100644
--- a/net/bluetooth/rfcomm/core.c
+++ b/net/bluetooth/rfcomm/core.c
@@ -73,8 +73,6 @@ static struct rfcomm_session *rfcomm_session_create(bdaddr_t *src,
 
 /* ---- RFCOMM frame parsing macros ---- */
 #define __get_dlci(b)     ((b & 0xfc) >> 2)
-#define __get_channel(b)  ((b & 0xf8) >> 3)
-#define __get_dir(b)      ((b & 0x04) >> 2)
 #define __get_type(b)     ((b & 0xef))
 
 #define __test_ea(b)      ((b & 0x01))
-- 
1.8.3.1




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux