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 <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sandhya Bankar 2016-09-18 04:41:39 +05:30 committed by Greg Kroah-Hartman
parent a2576177cc
commit 604e383c52

View file

@ -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;