Staging: rts5208: sd.c: fix line over 80 characters
PATCH 1/1 Staging: rts5208: sd.c: fix line over 80 characters
From: Anushka Shukla <[email protected]>
Rearrange code to fix line over 80 characters
--- drivers/staging/rts5208/sd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rts5208/sd.c +2 -1
@@ -4513,7 +4513,8 @@ int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip)if (sd_lock_state ^ (sd_card->sd_lock_status &SD_LOCKED )) { sd_card->sd_lock_notify =1 ;if (sd_lock_state) { -if (sd_card->sd_lock_status &SD_LOCK_1BIT_MODE ) { +if (sd_card->sd_lock_status & +SD_LOCK_1BIT_MODE ) { sd_card->sd_lock_status |= (SD_UNLOCK_POW_ON |SD_SDR_RST );if (CHK_SD (sd_card)) {
Signature · 1 line
2.17.1
Quoted 14 lines · On Sat, 23 Mar 2019, [email protected] wrote:
From: Anushka Shukla <[email protected]>
Rearrange code to fix line over 80 characters
Signed-off-by Anushka Shukla <[email protected]>--- drivers/staging/rts5208/sd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/staging/rts5208/sd.c +0
-0
drivers/staging/rts5208/sd.c int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip) · line 4519
Quoted 8 lines
drivers/staging/rts5208/sd.c +2
-1@@ -4513,7 +4513,8 @@ int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip)if (sd_lock_state ^ (sd_card->sd_lock_status &SD_LOCKED )) { sd_card->sd_lock_notify =1 ;if (sd_lock_state) { -if (sd_card->sd_lock_status &SD_LOCK_1BIT_MODE ) { +if (sd_card->sd_lock_status & +SD_LOCK_1BIT_MODE ) { sd_card->sd_lock_status |= (SD_UNLOCK_POW_ON |SD_SDR_RST );
The change is ok, but there is another improvement opportunity here on the next line. The open paren should be move to the next line, or the parentheses around the expression should just be dropped.
julia
Quoted 11 lines
drivers/staging/rts5208/sd.c +0
-1if (CHK_SD (sd_card)) { --2.17.1
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190323113413.8040-1-anushkacharu9%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Okay i will do it.
Thanks.
Quoted 55 lines · Julia Lawall
drivers/staging/rts5208/sd.c int sd_execute_write_data(struct scsi_cmnd *srb,
Quoted 14 lines · On Sat, 23 Mar 2019, [email protected] <javascript:> wrote:
From: Anushka Shukla <[email protected] <javascript:>>
Rearrange code to fix line over 80 characters
Signed-off-by Anushka Shukla <[email protected] <javascript:>>---
drivers/staging/rts5208/sd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/staging/rts5208/sd.c +0
-0@@ -4513,7 +4513,8 @@ int sd_execute_write_data(struct scsi_cmnd *srb,struct
rtsx_chip*chip)drivers/staging/rts5208/sd.c int sd_execute_write_data(struct scsi_cmnd *srb, · line 4513
Quoted 1 line
drivers/staging/rts5208/sd.c +0
-0if (sd_lock_state ^ (sd_card->sd_lock_status &
SD_LOCKED)) {drivers/staging/rts5208/sd.c int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip)
Quoted 3 lines
drivers/staging/rts5208/sd.c +0
-1sd_card->sd_lock_notify =1 ;if (sd_lock_state) { - if (sd_card->sd_lock_status &
SD_LOCK_1BIT_MODE) {drivers/staging/rts5208/sd.c int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip)
Quoted 4 lines
drivers/staging/rts5208/sd.c +2
-0+if (sd_card->sd_lock_status & +SD_LOCK_1BIT_MODE ) { sd_card->sd_lock_status |= ( SD_UNLOCK_POW_ON |
SD_SDR_RST);The change is ok, but there is another improvement opportunity here on the next line. The open paren should be move to the next line, or the parentheses around the expression should just be dropped.
julia
Quoted 6 lines
drivers/staging/rts5208/sd.c +0
-0if (CHK_SD (sd_card)) {Signature · 4 lines
2.17.1 -- You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected] <javascript:>.
Quoted 1 line
To post to this group, send email to [email protected]
<javascript:>.
Quoted 1 line
To view this discussion on the web visit
https://groups.google.com/d/msgid/outreachy-kernel/20190323113413.8040-1-anushkacharu9%40gmail.com.
Quoted 2 lines
For more options, visit https://groups.google.com/d/optout.
Quoted 1 line · On Sun, 24 Mar 2019, [email protected] wrote:
Okay i will do it.
Don't top post. Put your reply under the text that you are replying to.
thanks,
julia
Quoted 74 lines
Thanks.
On Saturday, 23 March 2019 19:07:51 UTC+5:30, Julia Lawall wrote:
On Sat, 23 Mar 2019, [email protected] wrote: > From: Anushka Shukla <[email protected]> > > Rearrange code to fix line over 80 characters > > Signed-off-by: Anushka Shukla <[email protected]> > --- > 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 c256a2398651..7853ef9ca372 100644 > --- a/drivers/staging/rts5208/sd.c > +++ b/drivers/staging/rts5208/sd.c > @@ -4513,7 +4513,8 @@ int sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip) > if (sd_lock_state ^ (sd_card->sd_lock_status & SD_LOCKED)) { > sd_card->sd_lock_notify = 1; > if (sd_lock_state) { > - if (sd_card->sd_lock_status & SD_LOCK_1BIT_MODE) { > + if (sd_card->sd_lock_status & > + SD_LOCK_1BIT_MODE) { > sd_card->sd_lock_status |= ( > SD_UNLOCK_POW_ON | SD_SDR_RST); The change is ok, but there is another improvement opportunity here on the next line. The open paren should be move to the next line, or the parentheses around the expression should just be dropped. julia > if (CHK_SD(sd_card)) { > -- > 2.17.1 > > -- > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/20190323113413.8040-1-an ushkacharu9%40gmail.com. > For more options, visit https://groups.google.com/d/optout. >--
You received this message because you are subscribed to the Google Groups
"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/ab824102-840f-4212-9d06- c0cb65aaf793%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.