mirror of https://github.com/torvalds/linux.git
mmc: sdhci-of-arasan: Omit a variable reassignment in sdhci_arasan_probe()
An error code was assigned to a variable and checked accordingly. This value was passed to a dev_err_probe() call in an if branch. This function is documented in the way that the same value is returned. Thus delete a redundant variable reassignment. The source code was transformed by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Acked-by: Michal Simek <michal.simek@amd.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
cb24b4a9d9
commit
7ce67e2179
|
|
@ -1991,7 +1991,7 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
|
|||
|
||||
ret = mmc_of_parse(host->mmc);
|
||||
if (ret) {
|
||||
ret = dev_err_probe(dev, ret, "parsing dt failed.\n");
|
||||
dev_err_probe(dev, ret, "parsing dt failed.\n");
|
||||
goto unreg_clk;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue