]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net: ieee802154: remove redundant assignment to rc
authorColin Ian King <colin.king@canonical.com>
Tue, 13 Aug 2019 14:28:18 +0000 (15:28 +0100)
committerStefan Schmidt <stefan@datenfreihafen.org>
Tue, 13 Aug 2019 23:10:41 +0000 (01:10 +0200)
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>
net/ieee802154/socket.c

index bc6b912603f164b981e761974e4e64f39b01dc8f..1e9876813392e09f13f9e2c97ea5e8d661919017 100644 (file)
@@ -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)