提交 5c698e8b 编写于 作者: A Alexander Aring 提交者: Marcel Holtmann

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: NAlexander Aring <alex.aring@gmail.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 95c0aa15
...@@ -189,7 +189,7 @@ static int mac802154_slave_open(struct net_device *dev) ...@@ -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_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev);
struct ieee802154_local *local = sdata->local; struct ieee802154_local *local = sdata->local;
int res = 0; int res;
ASSERT_RTNL(); ASSERT_RTNL();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册