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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Nitin Rawat <[email protected]> Tested-by: Andrew Halaney <[email protected]> # sa8775p-ride Signed-off-by: Martin K. Petersen <[email protected]>
1 parent e430c0e commit 8291652

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)