mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 00:24:12 +08:00
clk: qcom: cleanup some dev_err_probe() calls
The dev_err_probe() function prints an error message if the error code is not -EPROBE_DEFER. If we know the error code in is -ENODEV then there is no reason to check. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/YJotlJBJ1CVAgvMT@mwanda Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
86881de493
commit
15abefda7f
@ -56,8 +56,10 @@ static int qcom_apcs_sdx55_clk_probe(struct platform_device *pdev)
|
||||
int ret;
|
||||
|
||||
regmap = dev_get_regmap(parent, NULL);
|
||||
if (!regmap)
|
||||
return dev_err_probe(dev, -ENODEV, "Failed to get parent regmap\n");
|
||||
if (!regmap) {
|
||||
dev_err(dev, "Failed to get parent regmap\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
a7cc = devm_kzalloc(dev, sizeof(*a7cc), GFP_KERNEL);
|
||||
if (!a7cc)
|
||||
|
Loading…
Reference in New Issue
Block a user