]> git.baikalelectronics.ru Git - kernel.git/commit
net: tulip: de4x5: make PCI_signature() return void
authorJason Yan <yanaijie@huawei.com>
Thu, 7 May 2020 11:08:47 +0000 (19:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2020 20:04:21 +0000 (13:04 -0700)
commit93b3c7e28be7b6c9c3fa1b0b9b4632f60a518ce3
tree5eae9b790cb5a2fd847e2f9264dda599275afab4
parent22834a9d25ec34a8ab383e1d2fd7854f1eae5a18
net: tulip: de4x5: make PCI_signature() return void

This function always return 0 now, we can make it return void to
simplify the code. This fixes the following coccicheck warning:

drivers/net/ethernet/dec/tulip/de4x5.c:3908:11-17: Unneeded variable:
"status". Return "0" on line 3912

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dec/tulip/de4x5.c