Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexander Aring and committed by
Marcel Holtmann
5c698e8b 95c0aa15

+1 -1
+1 -1
net/mac802154/iface.c
··· 189 189 { 190 190 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); 191 191 struct ieee802154_local *local = sdata->local; 192 - int res = 0; 192 + int res; 193 193 194 194 ASSERT_RTNL(); 195 195