diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-08-13 16:28:18 +0200 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2019-08-14 01:10:41 +0200 |
commit | 074014abdf2bd2a00da3dd14a6ae04cafc1d62cc (patch) | |
tree | d84620b862e255d31727aefb8651696360cbdd30 /net/ieee802154 | |
parent | ieee802154: hwsim: unregister hw while hwsim_subscribe_all_others fails (diff) | |
download | linux-074014abdf2bd2a00da3dd14a6ae04cafc1d62cc.tar.xz linux-074014abdf2bd2a00da3dd14a6ae04cafc1d62cc.zip |
net: ieee802154: remove redundant assignment to rc
Variable rc is initialized to a value that is never read and it is
re-assigned later. The initialization is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'net/ieee802154')
-rw-r--r-- | net/ieee802154/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/socket.c b/net/ieee802154/socket.c index bc6b912603f1..1e9876813392 100644 --- a/net/ieee802154/socket.c +++ b/net/ieee802154/socket.c @@ -1102,7 +1102,7 @@ static struct packet_type ieee802154_packet_type = { static int __init af_ieee802154_init(void) { - int rc = -EINVAL; + int rc; rc = proto_register(&ieee802154_raw_prot, 1); if (rc) |