diff options
author | Colin Ian King | 2019-08-13 15:28:18 +0100 |
---|---|---|
committer | Stefan Schmidt | 2019-08-14 01:10:41 +0200 |
commit | 074014abdf2bd2a00da3dd14a6ae04cafc1d62cc (patch) | |
tree | d84620b862e255d31727aefb8651696360cbdd30 /net | |
parent | de166bbe861738c8bc3e5dad5b03f45d7d6ef914 (diff) |
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')
-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) |