scsi: ufs: fix static checker warning in ufshcd_parse_clock_info
authorDolev Raviv <draviv@codeaurora.org>
Thu, 23 Oct 2014 10:25:17 +0000 (13:25 +0300)
committerChristoph Hellwig <hch@lst.de>
Thu, 20 Nov 2014 16:47:41 +0000 (17:47 +0100)
commite8cb64db81e8c88c5c824ca74c2e57b4c6919ca6
tree5fd09caffd0c43a13062395bebbd42d9448c7933
parenteda910e4d03af878482055ce511a522d9bbda0e8
scsi: ufs: fix static checker warning in ufshcd_parse_clock_info

This patch fixes newly introduced static checker warning in
ufshcd_parse_clock_info, introduced by UFS power management series.

Warning:
drivers/scsi/ufs/ufshcd-pltfrm.c:138 ufshcd_parse_clock_info()
warn: passing devm_ allocated variable to kfree. 'clkfreq'

To fix it we remove the kfree(clkfreq) statement.
In addition we removed the redundant goto label.

Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
Reviewed-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/ufs/ufshcd-pltfrm.c