From: sayli karnik Date: Thu, 23 Feb 2017 11:55:08 +0000 (+0530) Subject: staging: speakup: i18n: Replace 'x!=NULL' with 'x' X-Git-Tag: v4.14-rc1~980^2~909 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75e6b00f72d6930870b7f9d405e3f9150881eac0;p=platform%2Fkernel%2Flinux-rpi.git staging: speakup: i18n: Replace 'x!=NULL' with 'x' The patch removes the explicit NULL comparison by replacing 'x!=NULL' with 'x'. This issue was found by checkpatch.pl Signed-off-by: sayli karnik Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/i18n.c b/drivers/staging/speakup/i18n.c index 2f9b3df7..56ce386 100644 --- a/drivers/staging/speakup/i18n.c +++ b/drivers/staging/speakup/i18n.c @@ -407,9 +407,9 @@ static char *next_specifier(char *input) int found = 0; char *next_percent = input; - while ((next_percent != NULL) && !found) { + while (next_percent && !found) { next_percent = strchr(next_percent, '%'); - if (next_percent != NULL) { + if (next_percent) { /* skip over doubled percent signs */ while ((next_percent[0] == '%') && (next_percent[1] == '%'))