mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-20 17:36:45 +07:00
scsi: qla2xxx: Make qla2x00_sysfs_write_nvram() easier to analyze
Modify the unlock statement such that it becomes easier for static analyzers to analyze it. This patch does not change any functionality. Cc: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
8f9a214823
commit
109a5987d9
@ -218,7 +218,7 @@ qla2x00_sysfs_write_nvram(struct file *filp, struct kobject *kobj,
|
|||||||
|
|
||||||
mutex_lock(&ha->optrom_mutex);
|
mutex_lock(&ha->optrom_mutex);
|
||||||
if (qla2x00_chip_is_down(vha)) {
|
if (qla2x00_chip_is_down(vha)) {
|
||||||
mutex_unlock(&vha->hw->optrom_mutex);
|
mutex_unlock(&ha->optrom_mutex);
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user