summaryrefslogtreecommitdiff
path: root/net/ieee802154/socket.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-08-13 15:28:18 +0100
committerStefan Schmidt <stefan@datenfreihafen.org>2019-08-14 01:10:41 +0200
commit074014abdf2bd2a00da3dd14a6ae04cafc1d62cc (patch)
treed84620b862e255d31727aefb8651696360cbdd30 /net/ieee802154/socket.c
parentde166bbe861738c8bc3e5dad5b03f45d7d6ef914 (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/ieee802154/socket.c')
-rw-r--r--net/ieee802154/socket.c2
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)