diff options
author | Bart Van Assche <bvanassche@acm.org> | 2018-10-18 15:45:43 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-10-23 21:32:34 -0400 |
commit | 109a5987d9ead316523647d6310d609dc95bdaa2 (patch) | |
tree | 4be12cdcb94ce36b16b6dddb59bb8ed249054ebc /drivers/scsi | |
parent | 8f9a214823c9806386760b9f8624a376bbcd5232 (diff) | |
download | linux-stable-109a5987d9ead316523647d6310d609dc95bdaa2.tar.gz linux-stable-109a5987d9ead316523647d6310d609dc95bdaa2.tar.bz2 linux-stable-109a5987d9ead316523647d6310d609dc95bdaa2.zip |
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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index b28f159fdaee..0bb9ac6ece92 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c @@ -218,7 +218,7 @@ qla2x00_sysfs_write_nvram(struct file *filp, struct kobject *kobj, mutex_lock(&ha->optrom_mutex); if (qla2x00_chip_is_down(vha)) { - mutex_unlock(&vha->hw->optrom_mutex); + mutex_unlock(&ha->optrom_mutex); return -EAGAIN; } |