[PATCH] Staging: speakup: i18n: Fixed a CHECK coding style.

rohitsakala rohitsakala at gmail.com
Sat Apr 30 02:49:48 UTC 2016


NULL comparison has been changed to correct coding style.

Signed-off-by: Sakala Venkata Krishna Rohit <rohitsakala at gmail.com>
---
 drivers/staging/speakup/i18n.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/speakup/i18n.c b/drivers/staging/speakup/i18n.c
index 8960079..a031a2d 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] == '%'))
-- 
1.9.1



More information about the devel mailing list