[PATCH] scsi: isci: remove unused macro scu_get_command_request_logical_port

Piotr Zarycki posted 1 patch 1 month, 3 weeks ago
drivers/scsi/isci/scu_task_context.h | 2 --
1 file changed, 2 deletions(-)
[PATCH] scsi: isci: remove unused macro scu_get_command_request_logical_port
Posted by Piotr Zarycki 1 month, 3 weeks ago
The macro scu_get_command_request_logical_port() has never been used
since it was introduced.

Signed-off-by: Piotr Zarycki <piotr.zarycki@gmail.com>
---
 drivers/scsi/isci/scu_task_context.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/scsi/isci/scu_task_context.h b/drivers/scsi/isci/scu_task_context.h
index 9cb4f5e30b86..40306c054117 100644
--- a/drivers/scsi/isci/scu_task_context.h
+++ b/drivers/scsi/isci/scu_task_context.h
@@ -211,8 +211,6 @@ typedef enum {
 
 #define SCU_CONTEXT_COMMAND_LOGICAL_PORT_SHIFT           12
 #define SCU_CONTEXT_COMMAND_LOGICAL_PORT_MASK            0x00007000
-#define scu_get_command_request_logical_port(x)	\
-	((x) & SCU_CONTEXT_COMMAND_LOGICAL_PORT_MASK)
 
 
 #define MAKE_SCU_CONTEXT_COMMAND_TYPE(type) \
-- 
2.53.0
Re: [PATCH] scsi: isci: remove unused macro scu_get_command_request_logical_port
Posted by Martin K. Petersen 3 weeks, 4 days ago
On Thu, 23 Apr 2026 10:13:43 +0200, Piotr Zarycki wrote:

> The macro scu_get_command_request_logical_port() has never been used
> since it was introduced.
> 
> 

Applied to 7.2/scsi-queue, thanks!

[1/1] scsi: isci: remove unused macro scu_get_command_request_logical_port
      https://git.kernel.org/mkp/scsi/c/016d484531e3

-- 
Martin K. Petersen
Re: [PATCH] scsi: isci: remove unused macro scu_get_command_request_logical_port
Posted by Martin K. Petersen 1 month ago
Piotr,

> The macro scu_get_command_request_logical_port() has never been used
> since it was introduced.

Applied to 7.2/scsi-staging, thanks!

-- 
Martin K. Petersen