From: Sandhya Bankar Date: Sat, 17 Sep 2016 23:11:39 +0000 (+0530) Subject: Staging: fbtft: Use !x instead of x == NULL. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=604e383c5229a214e17695e3ec13d9aa4952e10c;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/fbtft/fbtft_device.c b/drivers/staging/fbtft/fbtft_device.c index 924abd3ac0d6..e9f25ddebff0 100644 --- a/drivers/staging/fbtft/fbtft_device.c +++ b/drivers/staging/fbtft/fbtft_device.c @@ -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;