Staging: fbtft: Use !x instead of x == NULL.
Subsystems (2)
PATCH v2 1/1 Staging: fbtft: Use !x instead of x == NULL.
Use !x instead of x == NULL. This patch was found by checkpatch.
Signed-off-by Sandhya Bankar <[email protected]>
---
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
@@ -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