Skip to content
Snippets Groups Projects
Commit 0f77f2de authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d1bf7338
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment