2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-09 06:04:05 +08:00

Staging: ft1000: ft1000-usb: Removed unnecessary parentheses

Unnecessary parentheses around the right hand side of an assignment
is removed using the following semantic patch:

@@
identifier x,f;
constant C;
@@
(
-x = (f / C );
+x = f / C ;
|
-x = (f % C );
+x = f % C ;
)

Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Tina Johnson 2014-10-25 23:13:40 +05:30 committed by Greg Kroah-Hartman
parent 9ab6388cb8
commit dfd94488a8

View File

@ -837,7 +837,7 @@ int scram_dnldr(struct ft1000_usb *ft1000dev, void *pFileStart,
if (word_length & 0x1)
word_length++;
word_length = (word_length / 2);
word_length = word_length / 2;
for (; word_length > 0; word_length--) { /* In words */
@ -871,7 +871,7 @@ int scram_dnldr(struct ft1000_usb *ft1000dev, void *pFileStart,
if (word_length & 0x1)
word_length++;
word_length = (word_length / 2);
word_length = word_length / 2;
for (; word_length > 0; word_length--) { /* In words */