diff mbox

[OPW,kernel] staging/rts5208/rtsx_scsi.c: Remove unnecessary parentheses

Message ID 20140305152310.GA5820@fireworks
State New, archived
Headers show

Commit Message

Georgiana Rodica Chelu March 5, 2014, 3:23 p.m. UTC
Remove unnecessary parentheses from staging/rts5208/rtsx_scsi.c

Signed-off-by: Georgiana Rodica Chelu <georgiana.chelu93@gmail.com>
---
 drivers/staging/rts5208/rtsx_scsi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Paul E. McKenney March 5, 2014, 4:27 p.m. UTC | #1
On Wed, Mar 05, 2014 at 05:23:10PM +0200, Georgiana Rodica Chelu wrote:
> Remove unnecessary parentheses from staging/rts5208/rtsx_scsi.c
> 
> Signed-off-by: Georgiana Rodica Chelu <georgiana.chelu93@gmail.com>

Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

> ---
>  drivers/staging/rts5208/rtsx_scsi.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/rts5208/rtsx_scsi.c b/drivers/staging/rts5208/rtsx_scsi.c
> index 382e73a..bbfa665 100644
> --- a/drivers/staging/rts5208/rtsx_scsi.c
> +++ b/drivers/staging/rts5208/rtsx_scsi.c
> @@ -2867,7 +2867,7 @@ static int get_ms_information(struct scsi_cmnd *srb, struct rtsx_chip *chip)
>  		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
>  		TRACE_RET(chip, TRANSPORT_FAILED);
>  	}
> -	if ((get_lun_card(chip, lun) != MS_CARD)) {
> +	if (get_lun_card(chip, lun) != MS_CARD) {
>  		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT);
>  		TRACE_RET(chip, TRANSPORT_FAILED);
>  	}
> @@ -2983,7 +2983,7 @@ static int sd_extention_cmnd(struct scsi_cmnd *srb, struct rtsx_chip *chip)
>  		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
>  		TRACE_RET(chip, TRANSPORT_FAILED);
>  	}
> -	if ((get_lun_card(chip, lun) != SD_CARD)) {
> +	if (get_lun_card(chip, lun) != SD_CARD) {
>  		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT);
>  		TRACE_RET(chip, TRANSPORT_FAILED);
>  	}
> @@ -3046,7 +3046,7 @@ static int mg_report_key(struct scsi_cmnd *srb, struct rtsx_chip *chip)
>  		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
>  		TRACE_RET(chip, TRANSPORT_FAILED);
>  	}
> -	if ((get_lun_card(chip, lun) != MS_CARD)) {
> +	if (get_lun_card(chip, lun) != MS_CARD) {
>  		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT);
>  		TRACE_RET(chip, TRANSPORT_FAILED);
>  	}
> @@ -3151,7 +3151,7 @@ static int mg_send_key(struct scsi_cmnd *srb, struct rtsx_chip *chip)
>  		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_WRITE_PROTECT);
>  		TRACE_RET(chip, TRANSPORT_FAILED);
>  	}
> -	if ((get_lun_card(chip, lun) != MS_CARD)) {
> +	if (get_lun_card(chip, lun) != MS_CARD) {
>  		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT);
>  		TRACE_RET(chip, TRANSPORT_FAILED);
>  	}
> -- 
> 1.8.1.2
> 
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
diff mbox

Patch

diff --git a/drivers/staging/rts5208/rtsx_scsi.c b/drivers/staging/rts5208/rtsx_scsi.c
index 382e73a..bbfa665 100644
--- a/drivers/staging/rts5208/rtsx_scsi.c
+++ b/drivers/staging/rts5208/rtsx_scsi.c
@@ -2867,7 +2867,7 @@  static int get_ms_information(struct scsi_cmnd *srb, struct rtsx_chip *chip)
 		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
 		TRACE_RET(chip, TRANSPORT_FAILED);
 	}
-	if ((get_lun_card(chip, lun) != MS_CARD)) {
+	if (get_lun_card(chip, lun) != MS_CARD) {
 		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT);
 		TRACE_RET(chip, TRANSPORT_FAILED);
 	}
@@ -2983,7 +2983,7 @@  static int sd_extention_cmnd(struct scsi_cmnd *srb, struct rtsx_chip *chip)
 		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
 		TRACE_RET(chip, TRANSPORT_FAILED);
 	}
-	if ((get_lun_card(chip, lun) != SD_CARD)) {
+	if (get_lun_card(chip, lun) != SD_CARD) {
 		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT);
 		TRACE_RET(chip, TRANSPORT_FAILED);
 	}
@@ -3046,7 +3046,7 @@  static int mg_report_key(struct scsi_cmnd *srb, struct rtsx_chip *chip)
 		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
 		TRACE_RET(chip, TRANSPORT_FAILED);
 	}
-	if ((get_lun_card(chip, lun) != MS_CARD)) {
+	if (get_lun_card(chip, lun) != MS_CARD) {
 		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT);
 		TRACE_RET(chip, TRANSPORT_FAILED);
 	}
@@ -3151,7 +3151,7 @@  static int mg_send_key(struct scsi_cmnd *srb, struct rtsx_chip *chip)
 		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_WRITE_PROTECT);
 		TRACE_RET(chip, TRANSPORT_FAILED);
 	}
-	if ((get_lun_card(chip, lun) != MS_CARD)) {
+	if (get_lun_card(chip, lun) != MS_CARD) {
 		set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT);
 		TRACE_RET(chip, TRANSPORT_FAILED);
 	}