net: ethernet: ti: Use PTR_ERR_OR_ZERO() to simplify code
authorSamuel Zou <zou_wei@huawei.com>
Wed, 6 May 2020 02:54:58 +0000 (10:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 May 2020 20:43:53 +0000 (13:43 -0700)
commitbbae62e32ee9ef3995cb72e565dd8790a6858de2
tree5db1f96a97fb42db019283b25e0a604eaed0838e
parent01241aa000ab0a685062a448b0d7d97f470f446f
net: ethernet: ti: Use PTR_ERR_OR_ZERO() to simplify code

Fixes coccicheck warning:

drivers/net/ethernet/ti/am65-cpts.c:1017:1-3: WARNING: PTR_ERR_OR_ZERO can be used

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Samuel Zou <zou_wei@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/am65-cpts.c