Skip to content

Commit 8291652

Browse files
Mani-Sadhasivammartinkpetersen
authored andcommitted
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>
1 parent e430c0e commit 8291652

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/ufs/host/ufs-qcom.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,10 +1109,8 @@ static int ufs_qcom_init(struct ufs_hba *hba)
11091109
struct ufs_clk_info *clki;
11101110

11111111
host = devm_kzalloc(dev, sizeof(*host), GFP_KERNEL);
1112-
if (!host) {
1113-
dev_err(dev, "%s: no memory for qcom ufs host\n", __func__);
1112+
if (!host)
11141113
return -ENOMEM;
1115-
}
11161114

11171115
/* Make a two way bind between the qcom host and the hba */
11181116
host->hba = hba;

0 commit comments

Comments
 (0)