projects
/
GitHub
/
moto-9609
/
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:
95c0aa1
)
mac802154: iface: cleanup stack variable
author
Alexander Aring
<alex.aring@gmail.com>
Wed, 17 Jun 2015 13:35:18 +0000
(15:35 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 17 Jun 2015 14:00:40 +0000
(16:00 +0200)
There is no need to init res with zero, res can be unused but then we
returning zero and not res.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/iface.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac802154/iface.c
b/net/mac802154/iface.c
index 0b0cccb8533660d0d87070140b733e18111333e8..8b698246a51b6d304c209442ca0ecd0c3e652c79 100644
(file)
--- a/
net/mac802154/iface.c
+++ b/
net/mac802154/iface.c
@@
-189,7
+189,7
@@
static int mac802154_slave_open(struct net_device *dev)
{
struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev);
struct ieee802154_local *local = sdata->local;
- int res
= 0
;
+ int res;
ASSERT_RTNL();