net/packet: remove redundant initialization of variable err
authorColin Ian King <colin.king@canonical.com>
Wed, 1 Jul 2020 15:04:33 +0000 (16:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Jul 2020 19:44:52 +0000 (12:44 -0700)
commit2a6d6c31f136c136c05455788579586874a0525c
treec3f22439945d36f55e71f042148eaf2045f6b466
parent2b04a66156159592156a97553057e8c36de2ee70
net/packet: remove redundant initialization of variable err

The variable err is being initialized with a value that is never read
and it is being updated later with a new value.  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: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c