summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rts5208
diff options
context:
space:
mode:
authorP SAI PRASANTH <saip2823@gmail.com>2019-08-31 09:19:26 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-03 09:36:29 +0200
commit20738057210365bbcd8a718c04ded6c93a262b95 (patch)
treed0754920e0f6b28b8ca3c2a1054e2c1993643a1b /drivers/staging/rts5208
parent21d48f69d6fdf4542bab41122e54ccb2d6441dfd (diff)
downloadblackbird-op-linux-20738057210365bbcd8a718c04ded6c93a262b95.tar.gz
blackbird-op-linux-20738057210365bbcd8a718c04ded6c93a262b95.zip
staging: rts5208: Fix checkpath warning
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>
Diffstat (limited to 'drivers/staging/rts5208')
-rw-r--r--drivers/staging/rts5208/rtsx_transport.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/rts5208/rtsx_transport.c b/drivers/staging/rts5208/rtsx_transport.c
index e61bc7c6ac33..561851cc8780 100644
--- a/drivers/staging/rts5208/rtsx_transport.c
+++ b/drivers/staging/rts5208/rtsx_transport.c
@@ -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);
OpenPOWER on IntegriCloud