]> git.baikalelectronics.ru Git - kernel.git/commit
net: aquantia: fix return value check in aq_ptp_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 6 Nov 2019 14:59:21 +0000 (14:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 05:21:09 +0000 (21:21 -0800)
commitc92bc1dbc48ed0597e73669f53f930b7ef5948f4
tree1fee694915d917775a621ac1284af34bcf587cff
parentdbcf67917d485b5d64a0f7a49789b99e7702e040
net: aquantia: fix return value check in aq_ptp_init()

Function ptp_clock_register() returns ERR_PTR() and never returns
NULL. The NULL test should be removed.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_ptp.c