Skip to contentSkip to conversation

Staging: speakup: Replace return type

PATCH In review Madhumitha Prabakaran 2 participants 2 messages May 5, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: speakup: Replace return type

Replace return type and remove the respective assignment.

Issue found by Coccinelle.

---
 drivers/staging/speakup/i18n.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/speakup/i18n.c +1 -2
index ee240d36f947..a748eb8052d1 100644
@@ -470,8 +470,7 @@ static char *find_specifier_end(char *input)
 	input++;		/* Advance over %. */
 	input = skip_flags(input);
 	input = skip_width(input);
-	input = skip_conversion(input);
-	return input;
+	return skip_conversion(input);
 }
 
 /*
Signature · 1 line
2.17.1
#1 lore raw

Hello,

Madhumitha Prabakaran, le dim. 05 mai 2019 02:26:45 -0500, a ecrit:

Quoted 1 line

Replace return type and remove the respective assignment.

I prefer to keep it the way it was, it looks more straightforward for the reader.

Samuel

Quoted 24 lines

Issue found by Coccinelle.

---
 drivers/staging/speakup/i18n.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/speakup/i18n.c +1 -2
index ee240d36f947..a748eb8052d1 100644
@@ -470,8 +470,7 @@ static char *find_specifier_end(char *input)
 	input++;		/* Advance over %. */
 	input = skip_flags(input);
 	input = skip_width(input);
-	input = skip_conversion(input);
-	return input;
+	return skip_conversion(input);
 }
 
 /*
Signature · 1 line
2.17.1
Signature · 4 lines
Samuel
Progress (n.): The process through which the Internet has evolved from
smart people in front of dumb terminals to dumb people in front of smart
terminals.