]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Remove redundant initialization of variable pin
authorColin Ian King <colin.king@canonical.com>
Wed, 29 Sep 2021 13:27:53 +0000 (14:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Sep 2021 12:15:13 +0000 (13:15 +0100)
commit1b5619449e3f445191cfbf9f7cfc3e040d28b1f5
treeec03cfb29ccbfc3b415cd5202268ba4a37aec060
parentd7d0e9a951dc25843bd201004e1009f0c31992a5
octeontx2-af: Remove redundant initialization of variable pin

The variable pin is being initialized with a value that is never
read, it is being updated later on in only one case of a switch
statement.  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/ethernet/marvell/octeontx2/nic/otx2_ptp.c