Skip to content

Commit d29d04c

Browse files
davem330Gustavo F. Padovan
authored andcommitted
Bluetooth: Kill set but unused variable 'cmd' in cmtp_recv_capimsg()
Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
1 parent e694928 commit d29d04c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎net/bluetooth/cmtp/capi.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ void cmtp_recv_capimsg(struct cmtp_session *session, struct sk_buff *skb)
326326
{
327327
struct capi_ctr *ctrl = &session->ctrl;
328328
struct cmtp_application *application;
329-
__u16 cmd, appl;
329+
__u16 appl;
330330
__u32 contr;
331331

332332
BT_DBG("session %p skb %p len %d", session, skb, skb->len);
@@ -344,7 +344,6 @@ void cmtp_recv_capimsg(struct cmtp_session *session, struct sk_buff *skb)
344344
return;
345345
}
346346

347-
cmd = CAPICMD(CAPIMSG_COMMAND(skb->data), CAPIMSG_SUBCOMMAND(skb->data));
348347
appl = CAPIMSG_APPID(skb->data);
349348
contr = CAPIMSG_CONTROL(skb->data);
350349

0 commit comments

Comments
 (0)