Skip to content

Commit 074014a

Browse files
Colin Ian KingStefan-Schmidt
authored andcommitted
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>
1 parent de166bb commit 074014a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/ieee802154/socket.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ static struct packet_type ieee802154_packet_type = {
11021102

11031103
static int __init af_ieee802154_init(void)
11041104
{
1105-
int rc = -EINVAL;
1105+
int rc;
11061106

11071107
rc = proto_register(&ieee802154_raw_prot, 1);
11081108
if (rc)

0 commit comments

Comments
 (0)