]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: use IS_ERR instead of IS_ERR_OR_NULL for debugfs
authorTaehee Yoo <ap420073@gmail.com>
Sat, 1 Feb 2020 16:43:30 +0000 (16:43 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 3 Feb 2020 23:32:20 +0000 (15:32 -0800)
commita8fee0c0e07703f0b2f68b13db018c56cd0015d1
tree28d6bff0ce10881ab7d85aca87965202f9ddbc9b
parent2139e8d73b3634d34a07860ca6e9936d2836a4a2
netdevsim: use IS_ERR instead of IS_ERR_OR_NULL for debugfs

Debugfs APIs return valid pointer or error pointer. it doesn't return NULL.
So, using IS_ERR is enough, not using IS_ERR_OR_NULL.

Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netdevsim/bpf.c
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/health.c