Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1258989 > unrolled thread

[PATCH 4/4] drivers:staging:gdm724x Fix comparison to NULL coding style

Started byBogicevic Sasa <brutallesale@gmail.com>
First post2015-10-29 21:30 +0100
Last post2015-11-01 01:00 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 4/4] drivers:staging:gdm724x Fix comparison to NULL coding style Bogicevic Sasa <brutallesale@gmail.com> - 2015-10-29 21:30 +0100
    Re: [PATCH 4/4] drivers:staging:gdm724x Fix comparison to NULL  coding style Greg KH <gregkh@linuxfoundation.org> - 2015-11-01 01:00 +0100

#1258989 — [PATCH 4/4] drivers:staging:gdm724x Fix comparison to NULL coding style

FromBogicevic Sasa <brutallesale@gmail.com>
Date2015-10-29 21:30 +0100
Subject[PATCH 4/4] drivers:staging:gdm724x Fix comparison to NULL coding style
Message-ID<qp1ZF-4UY-25@gated-at.bofh.it>
This fixes "comparison to NULL could be written..." messages from
checkpatch.pl script

Signed-off-by: Bogicevic Sasa <brutallesale@gmail.com>
---
 drivers/staging/gdm724x/gdm_lte.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c
index 2202f77..7a86184 100644
--- a/drivers/staging/gdm724x/gdm_lte.c
+++ b/drivers/staging/gdm724x/gdm_lte.c
@@ -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);
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1260069 — Re: [PATCH 4/4] drivers:staging:gdm724x Fix comparison to NULL coding style

FromGreg KH <gregkh@linuxfoundation.org>
Date2015-11-01 01:00 +0100
SubjectRe: [PATCH 4/4] drivers:staging:gdm724x Fix comparison to NULL coding style
Message-ID<qpOdY-QP-1@gated-at.bofh.it>
In reply to#1258989
On Thu, Oct 29, 2015 at 09:23:09PM +0100, Bogicevic Sasa wrote:
> This fixes "comparison to NULL could be written..." messages from
> checkpatch.pl script
> 
> Signed-off-by: Bogicevic Sasa <brutallesale@gmail.com>

Where is patch 1/4, 2/4, and 3/4?


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web