From: Rehas Sachdeva Date: Thu, 15 Sep 2016 21:32:42 +0000 (+0530) Subject: staging: sm750fb: Change 'x != NULL' to 'x' X-Git-Tag: v4.9-rc1~119^2~588 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=71b4de84a0ef8b495da3d3ca884e3e601b05af1b;p=karo-tx-linux.git staging: sm750fb: Change 'x != NULL' to 'x' Changes the explicit comparison to NULL from 'x != NULL' to 'x'. Issue detected by checkpatch. Signed-off-by: Rehas Sachdeva Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 6ed004e40855..7d90e250142c 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -1176,7 +1176,7 @@ static int __init lynxfb_setup(char *options) else { strcat(tmp, opt); tmp += strlen(opt); - if (options != NULL) + if (options) *tmp++ = ':'; else *tmp++ = 0;