* [PATCH] bluetooth: Kill set but unused variable 'cmd' in cmtp_recv_capimsg()
@ 2011-05-19 21:50 David Miller
2011-05-20 2:43 ` Gustavo F. Padovan
0 siblings, 1 reply; 2+ messages in thread
From: David Miller @ 2011-05-19 21:50 UTC (permalink / raw)
To: linux-bluetooth
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/bluetooth/cmtp/capi.c b/net/bluetooth/cmtp/capi.c
index 744233c..040f67b 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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] bluetooth: Kill set but unused variable 'cmd' in cmtp_recv_capimsg()
2011-05-19 21:50 [PATCH] bluetooth: Kill set but unused variable 'cmd' in cmtp_recv_capimsg() David Miller
@ 2011-05-20 2:43 ` Gustavo F. Padovan
0 siblings, 0 replies; 2+ messages in thread
From: Gustavo F. Padovan @ 2011-05-20 2:43 UTC (permalink / raw)
To: David Miller; +Cc: linux-bluetooth
* David Miller <davem@davemloft.net> [2011-05-19 17:50:05 -0400]:
>
> Signed-off-by: David S. Miller <davem@davemloft.net>
>
> diff --git a/net/bluetooth/cmtp/capi.c b/net/bluetooth/cmtp/capi.c
> index 744233c..040f67b 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);
Applied, thanks.
--
Gustavo F. Padovan
http://profusion.mobi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-20 2:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-19 21:50 [PATCH] bluetooth: Kill set but unused variable 'cmd' in cmtp_recv_capimsg() David Miller
2011-05-20 2:43 ` Gustavo F. Padovan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.