drivers:staging:gdm724x Fix comparison to NULL coding style
PATCH 4/4 drivers:staging:gdm724x Fix comparison to NULL coding style
This fixes "comparison to NULL could be written..." messages from checkpatch.pl script
Signed-off-by Bogicevic Sasa <[email protected]>
--- drivers/staging/gdm724x/gdm_lte.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/gdm724x/gdm_lte.c +2 -2
@@ -775,7 +775,7 @@ static int gdm_lte_receive_pkt(struct phy_dev *phy_dev, char *buf, int len) hci->cmd_evt); dev = phy_dev->dev[0 ]; -if (dev ==NULL ) +if (!dev)return 0 ;switch (cmd_evt) {
@@ -938,7 +938,7 @@ void unregister_lte_device(struct phy_dev *phy_dev)for (index =0 ; index <MAX_NIC_TYPE ; index++) { net = phy_dev->dev[index]; -if (net ==NULL ) +if (!net)continue ;unregister_netdev (net);
Signature · 1 line
2.1.4
Greg KH
maintainerQuoted 4 lines · Bogicevic Sasa
This fixes "comparison to NULL could be written..." messages from checkpatch.pl script
Signed-off-by Bogicevic Sasa <[email protected]>
Where is patch 1/4, 2/4, and 3/4?