Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753983AbbL2VAm (ORCPT ); Tue, 29 Dec 2015 16:00:42 -0500 Received: from mout.web.de ([212.227.15.14]:59857 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753613AbbL2VAk (ORCPT ); Tue, 29 Dec 2015 16:00:40 -0500 Subject: [PATCH 1/2] mmc-sdricoh_cs: Delete unnecessary variable initialisations in sdricoh_init_mmc() To: linux-mmc@vger.kernel.org, Sascha Sommer , Ulf Hansson References: <566ABCD9.1060404@users.sourceforge.net> <5682F3AC.7050107@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <5682F473.9040609@users.sourceforge.net> Date: Tue, 29 Dec 2015 22:00:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5682F3AC.7050107@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:XtQkp/fRZb/3sQEvIx76IPBOYb/UTx1kpLoEfFMBevEpPDtYnEy yMx6nB9XKQFMn9CwxfVcyb7zKpO39rhBdpaQHcEernKrBernfp0M9vVzDuyj9lDF5rYbAiM hCJdcGHj5srMlR7HCsv05UktrLIlScA3HJiJfpqzprHn0EZVkFSGsIaErPKDp1GdF+Hc524 em41yP00cvNaBvdDu9CVg== X-UI-Out-Filterresults: notjunk:1;V01:K0:1VIwGr0sy7k=:9mWZhTefuhYO2N4Dmkm0ti FVlR+B+fBQfw4yj4VOQXtMD2zwxxp9krD31/CuVMZaRq5ouDi3QiPAOkqkOYfCBnZBPjeT2jO eVhXVebnclfKtNDS5/6LD38XkzMPqjX2f8t4w3w7X9/xC3c0PiE3D1KD04NJukiN438QA5WnC ugUukCwVCLSwEVrEtVSGgrX4RvFed7lKOklmA/q/YC5jjOUaDKr3w+gm5+URXcNZXDiC2z8+v V2bCBZR6yp34fD6uirBwpou3ls4eTcxWaJisH7dIpiTu9yxUFwpk51S/orpCzQajgurA8tLBl DuNAoRCTsDPag+LfKxIT7bkV2TyCrXAMSqAVC11VHx++a1KO8BWwoY9KZS+o+OOqXMs1sYPrj JM2h0YFAN2pkMMRoxkTECC0MRxsFTNDi53xOT/SsvjYqhf+q+HxdMSZ0jZRllRGnMiUU1IeSz I0fcC5MoQ77ipK1MWRrG5nBUvCLdg5eHnSqFWVy5rBgw+LmFzlUMLvpnW+y2XPrJaf/WA2UIs bKSfuqpPSmEiGmqfMfmcUizXBbFZqFgjsbBBayG45kJ+jeqR34ryGiq8d6SSqroJU1i2ZW8ja ILpBx819FCHV09+7rE94EvsLYnmkz0Skm9ThnpJ/9d3212AaQ3KQk6NHtSAkSAKOI5PAqyP3H B6DFAgnQSC2PNIj6u4SsyaRnQ5TuPev0DCNYWRjmqADWK1GzzzaZH+5pZUn37P91vzjwLz2hW 7R/vur6zzQnHJyVyMQVnHeilWrATRCsNaevVhioyVpCAk3Cj0N1iQjIr6StTUkrDxESkGEqCt I1UQ+eLbUlp9NuM3ntMFiIBAqSmSw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1310 Lines: 41 From: Markus Elfring Date: Tue, 29 Dec 2015 21:11:45 +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 --- drivers/mmc/host/sdricoh_cs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdricoh_cs.c b/drivers/mmc/host/sdricoh_cs.c index b7e3057..5e57d9f 100644 --- a/drivers/mmc/host/sdricoh_cs.c +++ b/drivers/mmc/host/sdricoh_cs.c @@ -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) != -- 2.6.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/