From: Alexander Aring Date: Wed, 17 Jun 2015 13:35:18 +0000 (+0200) Subject: mac802154: iface: cleanup stack variable X-Git-Tag: v4.14-rc1~5205^2~29^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c698e8bbfaa6e26d851eeeeee09d61dfc9ff4a0;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Marcel Holtmann --- 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();