mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-18 15:44:02 +08:00
irda: irlap_event: Fix set-but-unused variables.
The variable 'ret' is set but unused in irlap_state_sclose(). Just kill it off. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
056693a38e
commit
1627ea35cb
@ -2227,8 +2227,6 @@ static int irlap_state_nrm_s(struct irlap_cb *self, IRLAP_EVENT event,
|
||||
static int irlap_state_sclose(struct irlap_cb *self, IRLAP_EVENT event,
|
||||
struct sk_buff *skb, struct irlap_info *info)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
IRDA_DEBUG(1, "%s()\n", __func__);
|
||||
|
||||
IRDA_ASSERT(self != NULL, return -ENODEV;);
|
||||
@ -2289,7 +2287,6 @@ static int irlap_state_sclose(struct irlap_cb *self, IRLAP_EVENT event,
|
||||
IRDA_DEBUG(1, "%s(), Unknown event %d, (%s)\n", __func__,
|
||||
event, irlap_event[event]);
|
||||
|
||||
ret = -EINVAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user