提交 8ce6eb1a 编写于 作者: D David S. Miller

irda: Fix error propagation in ircomm_lmp_connect_response()

The variable 'ret' is set but unused, and this pointed out that
errors from irlmp_connect_response() are not propagated to the
caller.

Note that this is currently academic since irlmp_connect_response()
always returns 0. :-)
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ad637643
...@@ -75,7 +75,6 @@ static int ircomm_lmp_connect_response(struct ircomm_cb *self, ...@@ -75,7 +75,6 @@ static int ircomm_lmp_connect_response(struct ircomm_cb *self,
struct sk_buff *userdata) struct sk_buff *userdata)
{ {
struct sk_buff *tx_skb; struct sk_buff *tx_skb;
int ret;
IRDA_DEBUG(0, "%s()\n", __func__ ); IRDA_DEBUG(0, "%s()\n", __func__ );
...@@ -100,9 +99,7 @@ static int ircomm_lmp_connect_response(struct ircomm_cb *self, ...@@ -100,9 +99,7 @@ static int ircomm_lmp_connect_response(struct ircomm_cb *self,
tx_skb = userdata; tx_skb = userdata;
} }
ret = irlmp_connect_response(self->lsap, tx_skb); return irlmp_connect_response(self->lsap, tx_skb);
return 0;
} }
static int ircomm_lmp_disconnect_request(struct ircomm_cb *self, static int ircomm_lmp_disconnect_request(struct ircomm_cb *self,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册