]> git.baikalelectronics.ru Git - kernel.git/commit
net/faraday: Fix unnecessary check in ftmac100_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Thu, 30 Apr 2020 12:15:31 +0000 (20:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Apr 2020 19:20:54 +0000 (12:20 -0700)
commite32290af6d5a4e915d7ebff5d4059cd4ea3674a9
treeebdc263ff85bee66aa62fdebe0b8f2c29b5c67d6
parentd912ec18921edf01af9eb808edaeb0cbf235acef
net/faraday: Fix unnecessary check in ftmac100_probe()

The function ftmac100_probe() is only called with an openfirmware
platform device. Therefore there is no need to check that the passed
in device is NULL.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/faraday/ftmac100.c