Skip to content

Commit a013c71

Browse files
Dan Carpentermartinkpetersen
authored andcommitted
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: 3e64140 ("scsi: elx: efct: SCSI I/O handling routines") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent f5ef336 commit a013c71

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/scsi/elx/efct/efct_scsi.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ efct_scsi_io_alloc(struct efct_node *node)
3232
struct efct *efct;
3333
struct efct_xport *xport;
3434
struct efct_io *io;
35-
unsigned long flags = 0;
35+
unsigned long flags;
3636

3737
efct = node->efct;
3838

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

0 commit comments

Comments
 (0)