]> git.baikalelectronics.ru Git - kernel.git/commit
ice: fix return value check in ice_gnss.c
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 5 Mar 2022 09:04:30 +0000 (17:04 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 16 Mar 2022 17:38:15 +0000 (10:38 -0700)
commit259e5e4d8329f31eec24389c642177d678af6ab1
treeb1d1e9d89d5a14634cab6a6e944e5bc26eeb3d42
parentba0f5585c3fe4c3e08fa7c7119fee288a862e488
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: 6c3ba553b025 ("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>
drivers/net/ethernet/intel/ice/ice_gnss.c