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

Staging: slicoss: changes comparisons to NULL in slicoss.c

This is a patch to slicoss.c to change the style of NULL comparisons in
order to remove checkpatch.pl warnings.

Signed-off-by: Ben Marsh <bmarsh94@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ben Marsh and committed by
Greg Kroah-Hartman
2d5f6fec 98589c41

+3 -3
+3 -3
drivers/staging/slicoss/slicoss.c
··· 1792 1792 1793 1793 /* Doesn't already exist. Allocate a structure to hold it */ 1794 1794 mcaddr = kmalloc(sizeof(*mcaddr), GFP_ATOMIC); 1795 - if (mcaddr == NULL) 1795 + if (!mcaddr) 1796 1796 return 1; 1797 1797 1798 1798 ether_addr_copy(mcaddr->address, address); ··· 1873 1873 { 1874 1874 if (adapter->xmitq_full) 1875 1875 netif_stop_queue(adapter->netdev); 1876 - if ((cmd == NULL) && (status <= XMIT_FAIL_HOSTCMD_FAIL)) { 1876 + if ((!cmd) && (status <= XMIT_FAIL_HOSTCMD_FAIL)) { 1877 1877 switch (status) { 1878 1878 case XMIT_FAIL_LINK_STATE: 1879 1879 dev_err(&adapter->netdev->dev, ··· 2983 2983 /* Initialize a new card structure if need be */ 2984 2984 if (card_hostid == SLIC_HOSTID_DEFAULT) { 2985 2985 card = kzalloc(sizeof(*card), GFP_KERNEL); 2986 - if (card == NULL) 2986 + if (!card) 2987 2987 return -ENOMEM; 2988 2988 2989 2989 card->next = slic_global.slic_card;