Staging: ft1000: ft1000-usb: Removed unnecessary parentheses
authorTina Johnson <tinajohnson.1234@gmail.com>
Sat, 25 Oct 2014 17:43:40 +0000 (23:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Oct 2014 07:58:12 +0000 (15:58 +0800)
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>
drivers/staging/ft1000/ft1000-usb/ft1000_download.c

index 37707da09e9c3604ac6524279c1e0b26fe440c54..7fb5c3f0063215faaa2427980231d8d034f4b66b 100644 (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 */