OSDN Git Service

bonding: remove redundant initialization of variable ret
authorColin Ian King <colin.king@canonical.com>
Thu, 3 Jun 2021 13:19:04 +0000 (14:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jun 2021 22:25:29 +0000 (15:25 -0700)
commit92e1b57c3865c508e0ecd9824b7a64256329b8fd
tree41c35a1e584e52208eefd8d2ea821ac68eb18e9c
parentfeb938fad63fb6fdd92ab082d0888ed5694af818
bonding: remove redundant initialization of variable ret

The variable ret is being initialized with a value that is never read,
it is being updated later on.  The assignment 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>
drivers/net/bonding/bond_options.c