summaryrefslogtreecommitdiff
path: root/drivers/staging/speakup/i18n.c
diff options
context:
space:
mode:
authorsayli karnik <karniksayli1995@gmail.com>2017-02-23 17:25:08 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-06 09:17:02 +0100
commit75e6b00f72d6930870b7f9d405e3f9150881eac0 (patch)
tree1b38df28c07f73c9584b38af9dd5b33a8bc3d630 /drivers/staging/speakup/i18n.c
parente3bab5eb1aaa966a0db2eeb032bc53b2995a9221 (diff)
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 <karniksayli1995@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/i18n.c')
-rw-r--r--drivers/staging/speakup/i18n.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/speakup/i18n.c b/drivers/staging/speakup/i18n.c
index 2f9b3df7f78d..56ce3862a3ea 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] == '%'))