projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
056693a
)
irda: irlap_event: Fix set-but-unused variables.
author
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 23:59:09 +0000
(16:59 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 23:59:09 +0000
(16:59 -0700)
The variable 'ret' is set but unused in irlap_state_sclose().
Just kill it off.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/irlap_event.c
patch
|
blob
|
blame
|
history
diff --git
a/net/irda/irlap_event.c
b/net/irda/irlap_event.c
index bb47021c9a55cc969427ef619f42a20c37eab2b5..ccd214f9d1969e159fceea50d04436a24254e5d9 100644
(file)
--- 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;
}