]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rts5208: Fix checkpath warning
authorP SAI PRASANTH <saip2823@gmail.com>
Sat, 31 Aug 2019 03:49:26 +0000 (09:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2019 07:36:29 +0000 (09:36 +0200)
This patch fixes the following checkpath warning
in the file drivers/staging/rts5208/rtsx_transport.c:546

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

Signed-off-by: P SAI PRASANTH <saip2823@gmail.com>
Link: https://lore.kernel.org/r/20190831034926.GA17810@dell-inspiron
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx_transport.c

index e61bc7c6ac336a7b6be23a16a4661cff4351dd37..561851cc878075dfefda2e10926756368e666ae3 100644 (file)
@@ -540,10 +540,9 @@ static int rtsx_transfer_sglist_adma(struct rtsx_chip *chip, u8 card,
                        dev_dbg(rtsx_dev(chip), "DMA addr: 0x%x, Len: 0x%x\n",
                                (unsigned int)addr, len);
 
+                       option = RTSX_SG_VALID | RTSX_SG_TRANS_DATA;
                        if (j == (sg_cnt - 1))
-                               option = RTSX_SG_VALID | RTSX_SG_END | RTSX_SG_TRANS_DATA;
-                       else
-                               option = RTSX_SG_VALID | RTSX_SG_TRANS_DATA;
+                               option |= RTSX_SG_END;
 
                        rtsx_add_sg_tbl(chip, (u32)addr, (u32)len, option);