Commit a013c71c authored by Dan Carpenter's avatar Dan Carpenter Committed by Martin K. Petersen
Browse files

scsi: elx: efct: Delete stray unlock statement

It's not holding the lock at this stage and the IRQ "flags" are not correct
so it would restore something bogus. Delete the unlock statement.

Link: https://lore.kernel.org/r/20211004103851.GE25015@kili


Fixes: 3e641400 ("scsi: elx: efct: SCSI I/O handling routines")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent f5ef336f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ efct_scsi_io_alloc(struct efct_node *node)
	struct efct *efct;
	struct efct_xport *xport;
	struct efct_io *io;
	unsigned long flags = 0;
	unsigned long flags;

	efct = node->efct;

@@ -44,7 +44,6 @@ efct_scsi_io_alloc(struct efct_node *node)
	if (!io) {
		efc_log_err(efct, "IO alloc Failed\n");
		atomic_add_return(1, &xport->io_alloc_failed_count);
		spin_unlock_irqrestore(&node->active_ios_lock, flags);
		return NULL;
	}