Commit 074014ab authored by Colin Ian King's avatar Colin Ian King Committed by Stefan Schmidt

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
parent de166bbe
...@@ -1102,7 +1102,7 @@ static struct packet_type ieee802154_packet_type = { ...@@ -1102,7 +1102,7 @@ static struct packet_type ieee802154_packet_type = {
static int __init af_ieee802154_init(void) static int __init af_ieee802154_init(void)
{ {
int rc = -EINVAL; int rc;
rc = proto_register(&ieee802154_raw_prot, 1); rc = proto_register(&ieee802154_raw_prot, 1);
if (rc) if (rc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment