mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 00:56:20 +01:00
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>
This commit is contained in:
parent
de166bbe86
commit
074014abdf
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue