From: David Miller Date: Thu, 19 May 2011 21:50:05 +0000 (-0400) Subject: Bluetooth: Kill set but unused variable 'cmd' in cmtp_recv_capimsg() X-Git-Tag: MMI-PSA29.97-13-9~18350^2~12^2~42^2~461 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d29d04ce0f49b9fbcaefc83ec4e9bdb7badd45fa;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Bluetooth: Kill set but unused variable 'cmd' in cmtp_recv_capimsg() Signed-off-by: David S. Miller Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/cmtp/capi.c b/net/bluetooth/cmtp/capi.c index 744233cba244..040f67b12978 100644 --- a/net/bluetooth/cmtp/capi.c +++ b/net/bluetooth/cmtp/capi.c @@ -326,7 +326,7 @@ void cmtp_recv_capimsg(struct cmtp_session *session, struct sk_buff *skb) { struct capi_ctr *ctrl = &session->ctrl; struct cmtp_application *application; - __u16 cmd, appl; + __u16 appl; __u32 contr; 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) return; } - cmd = CAPICMD(CAPIMSG_COMMAND(skb->data), CAPIMSG_SUBCOMMAND(skb->data)); appl = CAPIMSG_APPID(skb->data); contr = CAPIMSG_CONTROL(skb->data);