aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-04-03 14:02:09 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2015-04-04 01:50:20 -0400
commitb2ddeb11738464ce8f75c15384a3b8132cb80357 (patch)
treef07671da74f674a8de408eb83eaf3a32823dd971 /net/bluetooth
parent836a061b19d7b4e2e5e05c2a87a366e33127cf88 (diff)
Bluetooth: cmtp: Use BIT(x) instead of (1 << x)
Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/cmtp/capi.c2
-rw-r--r--net/bluetooth/cmtp/core.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/cmtp/capi.c b/net/bluetooth/cmtp/capi.c
index 75bd2c42e3e7..b0c6c6af76ef 100644
--- a/net/bluetooth/cmtp/capi.c
+++ b/net/bluetooth/cmtp/capi.c
@@ -333,7 +333,7 @@ void cmtp_recv_capimsg(struct cmtp_session *session, struct sk_buff *skb)
333 return; 333 return;
334 } 334 }
335 335
336 if (session->flags & (1 << CMTP_LOOPBACK)) { 336 if (session->flags & BIT(CMTP_LOOPBACK)) {
337 kfree_skb(skb); 337 kfree_skb(skb);
338 return; 338 return;
339 } 339 }
diff --git a/net/bluetooth/cmtp/core.c b/net/bluetooth/cmtp/core.c
index ddbc348c9dff..298ed37010e6 100644
--- a/net/bluetooth/cmtp/core.c
+++ b/net/bluetooth/cmtp/core.c
@@ -314,7 +314,7 @@ static int cmtp_session(void *arg)
314 314
315 down_write(&cmtp_session_sem); 315 down_write(&cmtp_session_sem);
316 316
317 if (!(session->flags & (1 << CMTP_LOOPBACK))) 317 if (!(session->flags & BIT(CMTP_LOOPBACK)))
318 cmtp_detach_device(session); 318 cmtp_detach_device(session);
319 319
320 fput(session->sock->file); 320 fput(session->sock->file);
@@ -390,7 +390,7 @@ int cmtp_add_connection(struct cmtp_connadd_req *req, struct socket *sock)
390 goto unlink; 390 goto unlink;
391 } 391 }
392 392
393 if (!(session->flags & (1 << CMTP_LOOPBACK))) { 393 if (!(session->flags & BIT(CMTP_LOOPBACK))) {
394 err = cmtp_attach_device(session); 394 err = cmtp_attach_device(session);
395 if (err < 0) { 395 if (err < 0) {
396 atomic_inc(&session->terminate); 396 atomic_inc(&session->terminate);