Skip to content

Commit 0f77f2d

Browse files
Colin Ian Kingdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d1bf733 commit 0f77f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac802154/iface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ ieee802154_if_add(struct ieee802154_local *local, const char *name,
617617
{
618618
struct net_device *ndev = NULL;
619619
struct ieee802154_sub_if_data *sdata = NULL;
620-
int ret = -ENOMEM;
620+
int ret;
621621

622622
ASSERT_RTNL();
623623

0 commit comments

Comments
 (0)