Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Markus Elfring and committed by
Ulf Hansson
7ce67e21 cb24b4a9

+1 -1
+1 -1
drivers/mmc/host/sdhci-of-arasan.c
··· 1991 1991 1992 1992 ret = mmc_of_parse(host->mmc); 1993 1993 if (ret) { 1994 - ret = dev_err_probe(dev, ret, "parsing dt failed.\n"); 1994 + dev_err_probe(dev, ret, "parsing dt failed.\n"); 1995 1995 goto unreg_clk; 1996 1996 } 1997 1997