]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qedf: Simplify mutex_unlock() usage
authorDaniel Wagner <dwagner@suse.de>
Fri, 3 Apr 2020 09:27:17 +0000 (11:27 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 14 Apr 2020 00:38:24 +0000 (20:38 -0400)
commit03a0164757840ea4ef581f99a9e88d51879c4212
treea8f8c0fd808425abdb53b98978797df0b80c4720
parentc3cb389d42dfda2cee566450a6894a2876841d78
scsi: qedf: Simplify mutex_unlock() usage

The commit cfbe26cc76d4 ("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/20200403092717.19779-1-dwagner@suse.de
Cc: Hannes Reinecke <hare@suse.com>
Cc: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_els.c