From: Colin Ian King Date: Tue, 7 Sep 2021 10:28:14 +0000 (+0100) Subject: ieee802154: Remove redundant initialization of variable ret X-Git-Tag: microblaze-v5.16~64^2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=0f77f2defaf682eb7e7ef623168e49c74ae529e3;p=linux-2.6-microblaze.git ieee802154: Remove redundant initialization of variable ret The variable ret is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King Signed-off-by: David S. Miller --- diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c index 1cf5ac09edcb..323d3d2d986f 100644 --- a/net/mac802154/iface.c +++ b/net/mac802154/iface.c @@ -617,7 +617,7 @@ ieee802154_if_add(struct ieee802154_local *local, const char *name, { struct net_device *ndev = NULL; struct ieee802154_sub_if_data *sdata = NULL; - int ret = -ENOMEM; + int ret; ASSERT_RTNL();