* [PATCH] drivers:staging:gdm724x Fix Comparison to NULL could be written "!gdm"
@ 2015-10-30 15:16 Bogicevic Sasa
0 siblings, 0 replies; only message in thread
From: Bogicevic Sasa @ 2015-10-30 15:16 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, devel, Bogicevic Sasa
This fixes message from checkpatch.pl Comparison to NULL could be
written "!gdm"
Signed-off-by: Bogicevic Sasa <brutallesale@gmail.com>
---
drivers/staging/gdm724x/gdm_tty.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c
index 0d54a73..85206ef 100644
--- a/drivers/staging/gdm724x/gdm_tty.c
+++ b/drivers/staging/gdm724x/gdm_tty.c
@@ -88,7 +88,7 @@ static int gdm_tty_install(struct tty_driver *driver, struct tty_struct *tty)
mutex_lock(&gdm_table_lock);
gdm = gdm_table[i][j];
- if (gdm == NULL) {
+ if (!gdm) {
mutex_unlock(&gdm_table_lock);
return -ENODEV;
}
--
2.1.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-30 15:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-30 15:16 [PATCH] drivers:staging:gdm724x Fix Comparison to NULL could be written "!gdm" Bogicevic Sasa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®