[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250902132359.83059-4-liaoyuanhong@vivo.com>
Date: Tue, 2 Sep 2025 21:23:43 +0800
From: Liao Yuanhong <liaoyuanhong@...o.com>
To: "James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Thomas Fourier <fourier.thomas@...il.com>,
linux-scsi@...r.kernel.org (open list:INTEL C600 SERIES SAS CONTROLLER DRIVER),
linux-kernel@...r.kernel.org (open list)
Cc: Liao Yuanhong <liaoyuanhong@...o.com>
Subject: [PATCH 3/6] scsi: isci: Remove redundant ternary operators
Remove redundant ternary operators to clean up the code.
Signed-off-by: Liao Yuanhong <liaoyuanhong@...o.com>
---
drivers/scsi/isci/request.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c
index bb89a2e33eb4..8b3fc1a86670 100644
--- a/drivers/scsi/isci/request.c
+++ b/drivers/scsi/isci/request.c
@@ -757,7 +757,7 @@ static enum sci_status sci_io_request_construct_basic_sata(struct isci_request *
ireq->protocol = SAS_PROTOCOL_STP;
- copy = (task->data_dir == DMA_NONE) ? false : true;
+ copy = task->data_dir != DMA_NONE;
status = sci_io_request_construct_sata(ireq,
task->total_xfer_len,
--
2.34.1
Powered by blists - more mailing lists