summaryrefslogtreecommitdiffstats
path: root/net/mac802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-06-17 15:35:18 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-06-17 16:00:40 +0200
commit5c698e8bbfaa6e26d851eeeeee09d61dfc9ff4a0 (patch)
tree36bca8468b9a42fc473363ff5c498be214ce4bc6 /net/mac802154
parent95c0aa15711e1e5fd62300a8abd244186ebf67e7 (diff)
downloadop-kernel-dev-5c698e8bbfaa6e26d851eeeeee09d61dfc9ff4a0.zip
op-kernel-dev-5c698e8bbfaa6e26d851eeeeee09d61dfc9ff4a0.tar.gz
mac802154: iface: cleanup stack variable
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>
Diffstat (limited to 'net/mac802154')
-rw-r--r--net/mac802154/iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c
index 0b0cccb..8b69824 100644
--- 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();
OpenPOWER on IntegriCloud