Skip to content

Commit

Permalink
irda: irlap_event: Fix set-but-unused variables.
Browse files Browse the repository at this point in the history
The variable 'ret' is set but unused in irlap_state_sclose().

Just kill it off.

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed Apr 17, 2011
1 parent 056693a commit 1627ea3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/irda/irlap_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;);
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 1627ea3

Please sign in to comment.