diff mbox series

net/bluetooth: remove __get_channel/dir

Message ID 1579596583-258090-1-git-send-email-alex.shi@linux.alibaba.com
State New
Headers show
Series net/bluetooth: remove __get_channel/dir | expand

Commit Message

Alex Shi Jan. 21, 2020, 8:49 a.m. UTC
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@linux.alibaba.com>
Cc: Marcel Holtmann <marcel@holtmann.org> 
Cc: Johan Hedberg <johan.hedberg@gmail.com> 
Cc: "David S. Miller" <davem@davemloft.net> 
Cc: "Gustavo A. R. Silva" <gustavo@embeddedor.com> 
Cc: linux-bluetooth@vger.kernel.org 
Cc: netdev@vger.kernel.org 
Cc: linux-kernel@vger.kernel.org 
---
 net/bluetooth/rfcomm/core.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

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))