Skip to contentSkip to conversation

mvsas: remove unused variable in mvs_task_exec()

PATCH Applied Dan Carpenter 2 participants 2 messages Mar 8, 2012 – Mar 9, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mvsas: remove unused variable in mvs_task_exec()

We don't use "dev" any more after 07ec747a5f ("libsas: remove ata_port.lock management duties from lldds") and it causes a compile warning.

drivers/scsi/mvsas/mv_sas.c +0 -1
index 7d46c1a..4539d59 100644
@@ -885,7 +885,6 @@ static int mvs_task_exec(struct sas_task *task, const int num, gfp_t gfp_flags,
 				struct completion *completion, int is_tmf,
 				struct mvs_tmf_task *tmf)
 {
-	struct domain_device *dev = task->dev;
 	struct mvs_info *mvi = NULL;
 	u32 rc = 0;
 	u32 pass = 0;
Applied
#1 lore raw
Quoted 5 lines · Dan Carpenter

We don't use "dev" any more after 07ec747a5f ("libsas: remove ata_port.lock management duties from lldds") and it causes a compile warning.

Thanks, applied to my 'libsas' branch. I'll carry this until James picks it up.