* [PATCH] Staging: rts5208: Reduce line lengths to < 80 chars
@ 2018-10-25 7:19 Kim Bradley
0 siblings, 0 replies; only message in thread
From: Kim Bradley @ 2018-10-25 7:19 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Greg Kroah-Hartman
Reduce as many line lengths as possible to < 80 chars
in order to fix checkpatch warnings. Some lines not feasible
to reduce.
Signed-off-by: Kim Bradley <kim.jamie.bradley@gmail.com>
---
drivers/staging/rts5208/xd.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/rts5208/xd.c b/drivers/staging/rts5208/xd.c
index 1187c75d764a..c8b78cc9eade 100644
--- a/drivers/staging/rts5208/xd.c
+++ b/drivers/staging/rts5208/xd.c
@@ -1155,10 +1155,14 @@ static int xd_copy_page(struct rtsx_chip *chip, u32 old_blk, u32 new_blk,
return STATUS_FAIL;
}
- if (((reg & (XD_ECC1_ERROR | XD_ECC1_UNCORRECTABLE)) ==
- (XD_ECC1_ERROR | XD_ECC1_UNCORRECTABLE)) ||
- ((reg & (XD_ECC2_ERROR | XD_ECC2_UNCORRECTABLE)) ==
- (XD_ECC2_ERROR | XD_ECC2_UNCORRECTABLE))) {
+ if (((reg & (XD_ECC1_ERROR |
+ XD_ECC1_UNCORRECTABLE)) ==
+ (XD_ECC1_ERROR |
+ XD_ECC1_UNCORRECTABLE)) ||
+ ((reg & (XD_ECC2_ERROR |
+ XD_ECC2_UNCORRECTABLE)) ==
+ (XD_ECC2_ERROR |
+ XD_ECC2_UNCORRECTABLE))) {
rtsx_write_register(chip,
XD_PAGE_STATUS,
0xFF,
@@ -1751,7 +1755,8 @@ static int xd_write_multiple_pages(struct rtsx_chip *chip, u32 old_blk,
retval = rtsx_transfer_data_partial(chip, XD_CARD, buf, page_cnt * 512,
scsi_sg_count(chip->srb),
- index, offset, DMA_TO_DEVICE, chip->xd_timeout);
+ index, offset,
+ DMA_TO_DEVICE, chip->xd_timeout);
if (retval < 0) {
rtsx_clear_xd_error(chip);
--
2.19.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-10-25 7:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-25 7:19 [PATCH] Staging: rts5208: Reduce line lengths to < 80 chars Kim Bradley
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.