Staging: rts5208: Removed unnecessary parentheses
authorTina Johnson <tinajohnson.1234@gmail.com>
Sat, 25 Oct 2014 17:43:42 +0000 (23:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Oct 2014 07:58:17 +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/rts5208/rtsx_transport.c

index 0a67dca72dffdcbb78a1e5f583d1d7192b8ef528..91fb61f61c919e6e24f43a33ddcdfc89c36d6bf9 100644 (file)
@@ -539,7 +539,7 @@ static int rtsx_transfer_sglist_adma(struct rtsx_chip *chip, u8 card,
                if (i == buf_cnt / (HOST_SG_TBL_BUF_LEN / 8))
                        sg_cnt = buf_cnt % (HOST_SG_TBL_BUF_LEN / 8);
                else
-                       sg_cnt = (HOST_SG_TBL_BUF_LEN / 8);
+                       sg_cnt = HOST_SG_TBL_BUF_LEN / 8;
 
                chip->sgi = 0;
                for (j = 0; j < sg_cnt; j++) {