In case of error, the function device_create_with_groups() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Frank Haverkamp <haver@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| card_base.c | ||
| card_base.h | ||
| card_ddcb.c | ||
| card_ddcb.h | ||
| card_debugfs.c | ||
| card_dev.c | ||
| card_sysfs.c | ||
| card_utils.c | ||
| genwqe_driver.h | ||
| Kconfig | ||
| Makefile | ||