Skip to contentSkip to conversation

drivers:staging:gdm724x Fix Comparison to NULL could be written "!gdm"

PATCH New Bogicevic Sasa 1 participant 1 message Oct 30, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers:staging:gdm724x Fix Comparison to NULL could be written "!gdm"

This fixes message from checkpatch.pl Comparison to NULL could be written "!gdm"

---
 drivers/staging/gdm724x/gdm_tty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/gdm724x/gdm_tty.c +1 -1
index 0d54a73..85206ef 100644
@@ -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;
 	}
Signature · 1 line
2.1.4