summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ice/ice_ptp.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-03-05 17:04:30 +0800
committerTony Nguyen <anthony.l.nguyen@intel.com>2022-03-16 10:38:15 -0700
commit2b1d0a242a0038f65e10d77261b7cbcb6bb5b18a (patch)
treeb1d1e9d89d5a14634cab6a6e944e5bc26eeb3d42 /drivers/net/ethernet/intel/ice/ice_ptp.c
parent2bcd5b9f357d5359cff2ad6d1e68e0a606d02870 (diff)
ice: fix return value check in ice_gnss.c
kthread_create_worker() and tty_alloc_driver() return ERR_PTR() and never return NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: 43113ff73453 ("ice: add TTY for GNSS module for E810T device") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ptp.c')
0 files changed, 0 insertions, 0 deletions