linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi:NCR5380: remove same check condition in NCR5380_select
@ 2018-08-02  3:10 zhong jiang
  2018-08-02  3:26 ` Bart Van Assche
  2018-08-03  2:24 ` Finn Thain
  0 siblings, 2 replies; 10+ messages in thread
From: zhong jiang @ 2018-08-02  3:10 UTC (permalink / raw)
  To: fthain, schmitzmic, jejb, martin.petersen
  Cc: andy.shevchenko, john.garry, linux-scsi, linux-kernel

The same check condition is redundant, so remove one of them.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
 drivers/scsi/NCR5380.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c
index 90ea0f5..2ecaf3f 100644
--- a/drivers/scsi/NCR5380.c
+++ b/drivers/scsi/NCR5380.c
@@ -999,8 +999,7 @@ static struct scsi_cmnd *NCR5380_select(struct Scsi_Host *instance,
 
 	/* Check for lost arbitration */
 	if ((NCR5380_read(INITIATOR_COMMAND_REG) & ICR_ARBITRATION_LOST) ||
-	    (NCR5380_read(CURRENT_SCSI_DATA_REG) & hostdata->id_higher_mask) ||
-	    (NCR5380_read(INITIATOR_COMMAND_REG) & ICR_ARBITRATION_LOST)) {
+	    (NCR5380_read(CURRENT_SCSI_DATA_REG) & hostdata->id_higher_mask)) {
 		NCR5380_write(MODE_REG, MR_BASE);
 		dsprintk(NDEBUG_ARBITRATION, instance, "lost arbitration, deasserting MR_ARBITRATE\n");
 		spin_lock_irq(&hostdata->lock);
-- 
1.7.12.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-08-03  9:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-02  3:10 [PATCH] scsi:NCR5380: remove same check condition in NCR5380_select zhong jiang
2018-08-02  3:26 ` Bart Van Assche
2018-08-02  3:45   ` zhong jiang
2018-08-02  7:32     ` Michael Schmitz
2018-08-03  2:56       ` Finn Thain
2018-08-03  4:19         ` Michael Schmitz
2018-08-03  6:04           ` Finn Thain
2018-08-03  2:24 ` Finn Thain
2018-08-03  9:10   ` Andy Shevchenko
2018-08-03  9:52     ` Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).