scsi: ufs: qcom: Don't free resource-managed kmalloc element

Host is allocated by managed kmalloc (devm_kmalloc). The
memory allocated with this function is automatically
freed on driver detach.
So, no need to make an exclusive free call over it.

Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
这个提交包含在:
Vivek Gautam
2016-11-08 15:37:51 +05:30
提交者 Martin K. Petersen
父节点 d7fe6b661a
当前提交 41e1d60ea5

查看文件

@@ -1268,7 +1268,6 @@ out_disable_phy:
out_unregister_bus:
phy_exit(host->generic_phy);
out_host_free:
devm_kfree(dev, host);
ufshcd_set_variant(hba, NULL);
out:
return err;