]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: sdricoh_cs: Delete unnecessary variable initialisations
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 29 Dec 2015 20:11:45 +0000 (21:11 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 2 Feb 2016 12:44:03 +0000 (13:44 +0100)
These variables will eventually be set to an appropriate value a bit later.
* host
* iobase
* result

Thus let us omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdricoh_cs.c

index b7e305775314fa75ccc58dd67752420bda8494ce..5e57d9f7f7b52a81322c6663e0b302cb2f28db67 100644 (file)
@@ -398,10 +398,10 @@ static struct mmc_host_ops sdricoh_ops = {
 static int sdricoh_init_mmc(struct pci_dev *pci_dev,
                            struct pcmcia_device *pcmcia_dev)
 {
-       int result = 0;
-       void __iomem *iobase = NULL;
+       int result;
+       void __iomem *iobase;
        struct mmc_host *mmc = NULL;
-       struct sdricoh_host *host = NULL;
+       struct sdricoh_host *host;
        struct device *dev = &pcmcia_dev->dev;
        /* map iomem */
        if (pci_resource_len(pci_dev, SDRICOH_PCI_REGION) !=