Skip to contentSkip to conversation

Staging: fbtft: Use !x instead of x == NULL.

PATCH Superseded Sandhya Bankar 1 participant 1 message Sep 18, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Staging: fbtft: Use !x instead of x == NULL.

Use !x instead of x == NULL. This patch was found by checkpatch.

---
Changes in v2:
* Correcting file permission issue.

 drivers/staging/fbtft/fbtft_device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/fbtft/fbtft_device.c +1 -1
index 924abd3..e9f25dd 100644
@@ -1401,7 +1401,7 @@ static int __init fbtft_device_init(void)
 	long val;
 	int ret = 0;
 
-	if (name == NULL) {
+	if (!name) {
 #ifdef MODULE
 		pr_err("missing module parameter: 'name'\n");
 		return -EINVAL;
Signature · 1 line
1.7.1