From: Don Brace Date: Sat, 18 Jul 2015 16:12:33 +0000 (-0500) Subject: hpsa: correct static checker warnings on driver init cleanup X-Git-Tag: Ubuntu-5.0.0-8.9~8776^2~48 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=7ef7323f4bf467ce9fe51177301ad8cbb7dc2631;p=mirror_ubuntu-disco-kernel.git hpsa: correct static checker warnings on driver init cleanup Reported-by: Dan Carpenter Reviewed-by: Kevin Barnett Reviewed-by: Scott Teel Reviewed-by: Tomas Henzl Signed-off-by: Don Brace Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index ce9122d37a8b..47d02871371d 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -8056,7 +8056,7 @@ reinit_after_soft_reset: rc = hpsa_kdump_soft_reset(h); if (rc) /* Neither hard nor soft reset worked, we're hosed. */ - goto clean9; + goto clean7; dev_info(&h->pdev->dev, "Board READY.\n"); dev_info(&h->pdev->dev, @@ -8102,8 +8102,6 @@ reinit_after_soft_reset: h->heartbeat_sample_interval); return 0; -clean9: /* wq, sh, perf, sg, cmd, irq, shost, pci, lu, aer/h */ - kfree(h->hba_inquiry_data); clean7: /* perf, sg, cmd, irq, shost, pci, lu, aer/h */ hpsa_free_performant_mode(h); h->access.set_intr_mask(h, HPSA_INTR_OFF);