* [PATCH] staging: rts5208: split long line of code
@ 2022-10-18 10:55 Tanjuate Brunostar
2022-10-18 10:58 ` Julia Lawall
0 siblings, 1 reply; 2+ messages in thread
From: Tanjuate Brunostar @ 2022-10-18 10:55 UTC (permalink / raw)
To: gregkh, linux-staging, linux-kernel, outreachy
Fix checkpatch warning by splitting up a long line of code, improving
code readability
Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com>
---
drivers/staging/rts5208/sd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/rts5208/sd.c b/drivers/staging/rts5208/sd.c
index 4643127a87ca..6503db5bb874 100644
--- a/drivers/staging/rts5208/sd.c
+++ b/drivers/staging/rts5208/sd.c
@@ -4505,7 +4505,8 @@ int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip)
if (CHK_SD(sd_card)) {
retval = reset_sd(chip);
if (retval != STATUS_SUCCESS) {
- sd_card->sd_lock_status &= ~(SD_UNLOCK_POW_ON | SD_SDR_RST);
+ sd_card->sd_lock_status &= ~(SD_UNLOCK_POW_ON |
+ SD_SDR_RST);
goto sd_execute_write_cmd_failed;
}
}
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] staging: rts5208: split long line of code
2022-10-18 10:55 [PATCH] staging: rts5208: split long line of code Tanjuate Brunostar
@ 2022-10-18 10:58 ` Julia Lawall
0 siblings, 0 replies; 2+ messages in thread
From: Julia Lawall @ 2022-10-18 10:58 UTC (permalink / raw)
To: Tanjuate Brunostar; +Cc: gregkh, linux-staging, linux-kernel, outreachy
On Tue, 18 Oct 2022, Tanjuate Brunostar wrote:
> Fix checkpatch warning by splitting up a long line of code, improving
> code readability
It doesn't seem like a great solution to break the expression in the
middle of the (). You could put the whole right hand side expression on
the next line indented with one tab.
julia
>
> Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com>
> ---
> drivers/staging/rts5208/sd.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/staging/rts5208/sd.c b/drivers/staging/rts5208/sd.c
> index 4643127a87ca..6503db5bb874 100644
> --- a/drivers/staging/rts5208/sd.c
> +++ b/drivers/staging/rts5208/sd.c
> @@ -4505,7 +4505,8 @@ int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip)
> if (CHK_SD(sd_card)) {
> retval = reset_sd(chip);
> if (retval != STATUS_SUCCESS) {
> - sd_card->sd_lock_status &= ~(SD_UNLOCK_POW_ON | SD_SDR_RST);
> + sd_card->sd_lock_status &= ~(SD_UNLOCK_POW_ON |
> + SD_SDR_RST);
> goto sd_execute_write_cmd_failed;
> }
> }
> --
> 2.34.1
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-18 10:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-18 10:55 [PATCH] staging: rts5208: split long line of code Tanjuate Brunostar
2022-10-18 10:58 ` Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®