Commit 15abefda authored by Dan Carpenter's avatar Dan Carpenter Committed by Stephen Boyd

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YJotlJBJ1CVAgvMT@mwandaSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 86881de4
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment