diff mbox series

target: Remove unused list 'device_list'

Message ID 20240503234419.171823-1-linux@treblig.org
State New
Headers show
Series target: Remove unused list 'device_list' | expand

Commit Message

Dr. David Alan Gilbert May 3, 2024, 11:44 p.m. UTC
From: "Dr. David Alan Gilbert" <linux@treblig.org>

Commit be50f538e9a5 ("target: remove g_device_list")
made 'g_device_list' local as 'device_list' but also
removed the last use of it, the code that added the device
to it.

Build tested only.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 drivers/target/target_core_device.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Martin K. Petersen May 7, 2024, 1:41 a.m. UTC | #1
> Commit be50f538e9a5 ("target: remove g_device_list") made
> 'g_device_list' local as 'device_list' but also removed the last use
> of it, the code that added the device to it.

Applied to 6.10/scsi-staging, thanks!
Martin K. Petersen May 11, 2024, 6:39 p.m. UTC | #2
On Sat, 04 May 2024 00:44:19 +0100, linux@treblig.org wrote:

> Commit be50f538e9a5 ("target: remove g_device_list")
> made 'g_device_list' local as 'device_list' but also
> removed the last use of it, the code that added the device
> to it.
> 
> Build tested only.
> 
> [...]

Applied to 6.10/scsi-queue, thanks!

[1/1] target: Remove unused list 'device_list'
      https://git.kernel.org/mkp/scsi/c/0f7b063faf8b
diff mbox series

Patch

diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c
index 7a85e6477e465..bf4892544cfdb 100644
--- a/drivers/target/target_core_device.c
+++ b/drivers/target/target_core_device.c
@@ -37,7 +37,6 @@ 
 #include "target_core_ua.h"
 
 static DEFINE_MUTEX(device_mutex);
-static LIST_HEAD(device_list);
 static DEFINE_IDR(devices_idr);
 
 static struct se_hba *lun0_hba;