summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-09-07 11:28:14 +0100
committerDavid S. Miller <davem@davemloft.net>2021-09-07 14:06:08 +0100
commit0f77f2defaf682eb7e7ef623168e49c74ae529e3 (patch)
tree2102ae59731f961f4081d0b0089bb9010f72669a /net
parentd1bf73387b5adbc12c6a59c1fbaa69e05ee265ed (diff)
downloadlinux-0f77f2defaf682eb7e7ef623168e49c74ae529e3.tar.gz
linux-0f77f2defaf682eb7e7ef623168e49c74ae529e3.tar.bz2
linux-0f77f2defaf682eb7e7ef623168e49c74ae529e3.zip
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 <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/mac802154/iface.c2
1 files changed, 1 insertions, 1 deletions
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();