summaryrefslogtreecommitdiffstats
path: root/net/irda/irlap_event.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-04-17 16:59:09 -0700
committerDavid S. Miller <davem@davemloft.net>2011-04-17 16:59:09 -0700
commit1627ea35cb10af2f71d38a82de6f6dfb910771ed (patch)
tree98831a499c01454b982484f71a20c4da4c385514 /net/irda/irlap_event.c
parent056693a38e56c520e208409d221cbc077282c19d (diff)
downloadlinux-1627ea35cb10af2f71d38a82de6f6dfb910771ed.tar.gz
linux-1627ea35cb10af2f71d38a82de6f6dfb910771ed.tar.bz2
linux-1627ea35cb10af2f71d38a82de6f6dfb910771ed.zip
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>
Diffstat (limited to 'net/irda/irlap_event.c')
-rw-r--r--net/irda/irlap_event.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/irda/irlap_event.c b/net/irda/irlap_event.c
index bb47021c9a55..ccd214f9d196 100644
--- a/net/irda/irlap_event.c
+++ b/net/irda/irlap_event.c
@@ -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;
}