linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net/bluetooth: remove __get_channel/dir
@ 2020-01-21  8:49 Alex Shi
  2020-01-21 16:19 ` Marcel Holtmann
  0 siblings, 1 reply; 6+ messages in thread
From: Alex Shi @ 2020-01-21  8:49 UTC (permalink / raw)
  Cc: Marcel Holtmann, Johan Hedberg, David S. Miller,
	Gustavo A. R. Silva, linux-bluetooth, netdev, linux-kernel

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-02-05  8:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21  8:49 [PATCH] net/bluetooth: remove __get_channel/dir Alex Shi
2020-01-21 16:19 ` Marcel Holtmann
2020-02-04 11:28   ` Alex Shi
2020-02-04 14:58     ` Marcel Holtmann
2020-02-05  3:23       ` [PATCH v2] net/bluetooth: remove __get_channel/dir and __dir Alex Shi
2020-02-05  8:08         ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).