scsi: ufs: qcom: Remove redundant error print for devm_kzalloc() failure
devm_kzalloc() will itself print the error message on failure. So let's get rid of the redundant error message in ufs_qcom_init(). Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Link: https://lore.kernel.org/r/20231208065902.11006-10-manivannan.sadhasivam@linaro.org Reviewed-by: Nitin Rawat <quic_nitirawa@quicinc.com> Tested-by: Andrew Halaney <ahalaney@redhat.com> # sa8775p-ride Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
e430c0e089
commit
8291652ed8
@ -1109,10 +1109,8 @@ static int ufs_qcom_init(struct ufs_hba *hba)
|
|||||||
struct ufs_clk_info *clki;
|
struct ufs_clk_info *clki;
|
||||||
|
|
||||||
host = devm_kzalloc(dev, sizeof(*host), GFP_KERNEL);
|
host = devm_kzalloc(dev, sizeof(*host), GFP_KERNEL);
|
||||||
if (!host) {
|
if (!host)
|
||||||
dev_err(dev, "%s: no memory for qcom ufs host\n", __func__);
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
/* Make a two way bind between the qcom host and the hba */
|
/* Make a two way bind between the qcom host and the hba */
|
||||||
host->hba = hba;
|
host->hba = hba;
|
||||||
|
Reference in New Issue
Block a user