]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rts5208: Fixed checkpath warning.
authorPrakhar Sinha <prakharsinha2808@gmail.com>
Fri, 30 Aug 2019 12:16:56 +0000 (17:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2019 07:36:08 +0000 (09:36 +0200)
This patch solves the following checkpatch.pl's message in drivers/staging/rts5208/rtsx_transport.c:397.

WARNING: line over 80 characters
+                               option = RTSX_SG_VALID | RTSX_SG_END | RTSX_SG_TRANS_DATA;

Signed-off-by: Prakhar Sinha <prakharsinha2808@gmail.com>
Link: https://lore.kernel.org/r/20190830121656.GA2740@MeraComputer
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx_transport.c

index 8277d78956082d31679b2e4e8a75891c1f22ead1..e61bc7c6ac336a7b6be23a16a4661cff4351dd37 100644 (file)
@@ -393,10 +393,9 @@ static int rtsx_transfer_sglist_adma_partial(struct rtsx_chip *chip, u8 card,
                        *offset = 0;
                        *index = *index + 1;
                }
-               if ((i == (sg_cnt - 1)) || !resid)
-                       option = RTSX_SG_VALID | RTSX_SG_END | RTSX_SG_TRANS_DATA;
-               else
-                       option = RTSX_SG_VALID | RTSX_SG_TRANS_DATA;
+               option = RTSX_SG_VALID | RTSX_SG_TRANS_DATA;
+               if ((i == sg_cnt - 1) || !resid)
+                       option |= RTSX_SG_END;
 
                rtsx_add_sg_tbl(chip, (u32)addr, (u32)len, option);