Skip to content

Commit 2ade42d

Browse files
Alex Shiholtmann
authored andcommitted
Bluetooth: remove __get_channel/dir and __dir
These 3 macros are never used from first git commit Linux-2.6.12-rc2. let's remove them. Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent 2a15490 commit 2ade42d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎net/bluetooth/rfcomm/core.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ static struct rfcomm_session *rfcomm_session_del(struct rfcomm_session *s);
7373

7474
/* ---- RFCOMM frame parsing macros ---- */
7575
#define __get_dlci(b) ((b & 0xfc) >> 2)
76-
#define __get_channel(b) ((b & 0xf8) >> 3)
77-
#define __get_dir(b) ((b & 0x04) >> 2)
7876
#define __get_type(b) ((b & 0xef))
7977

8078
#define __test_ea(b) ((b & 0x01))
@@ -87,7 +85,6 @@ static struct rfcomm_session *rfcomm_session_del(struct rfcomm_session *s);
8785
#define __ctrl(type, pf) (((type & 0xef) | (pf << 4)))
8886
#define __dlci(dir, chn) (((chn & 0x1f) << 1) | dir)
8987
#define __srv_channel(dlci) (dlci >> 1)
90-
#define __dir(dlci) (dlci & 0x01)
9188

9289
#define __len8(len) (((len) << 1) | 1)
9390
#define __len16(len) ((len) << 1)

0 commit comments

Comments
 (0)