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>
This commit is contained in:
Alexander Aring 2015-06-17 15:35:18 +02:00 committed by Marcel Holtmann
parent 95c0aa1571
commit 5c698e8bbf
1 changed files with 1 additions and 1 deletions

View File

@ -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();