Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

smsc: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO

This patch fixes coccinelle error regarding usage of IS_ERR and
PTR_ERR instead of PTR_ERR_OR_ZERO.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Duan Jiong and committed by
David S. Miller
c1fcbaa5 f9bddcdf

+1 -3
+1 -3
drivers/net/ethernet/smsc/smc9194.c
··· 1569 1569 1570 1570 /* copy the parameters from insmod into the device structure */ 1571 1571 devSMC9194 = smc_init(-1); 1572 - if (IS_ERR(devSMC9194)) 1573 - return PTR_ERR(devSMC9194); 1574 - return 0; 1572 + return PTR_ERR_OR_ZERO(devSMC9194); 1575 1573 } 1576 1574 1577 1575 void __exit cleanup_module(void)