Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scsi: qedf: Simplify mutex_unlock() usage
The commit 6d1368e ("scsi: qedf: fixup locking in qedf_restart_rport()") introduced the lock. Though the lock protects only the fc_rport_create() call. Thus, we can move the mutex unlock up before the if statement and drop the else body. Link: https://lore.kernel.org/r/[email protected] Cc: Hannes Reinecke <[email protected]> Cc: Saurav Kashyap <[email protected]> Signed-off-by: Daniel Wagner <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
- Loading branch information