Skip to content

Commit

Permalink
ieee802154: Remove redundant initialization of variable ret
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and David S. Miller committed Sep 7, 2021
1 parent d1bf733 commit 0f77f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac802154/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 0f77f2d

Please sign in to comment.