net: rtnetlink: remove redundant assignment to variable err
authorColin Ian King <colin.king@canonical.com>
Sat, 25 Apr 2020 11:28:14 +0000 (12:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2020 18:14:07 +0000 (11:14 -0700)
commit7d3118016787b5c05da94b3bcdb96c9d6ff82c44
tree312490d04516be1afb183076bad51491095ac51c
parent3608a199749873edc992c74adf077c3a848121ad
net: rtnetlink: remove redundant assignment to variable err

The variable err is being initializeed 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/core/rtnetlink.c