lkml.org 
[lkml]   [2011]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] mmc: tmio: eliminate unused variable 'mmc' warning
    On Wed, 3 Aug 2011, Axel Lin wrote:

    > Fix below compile warning:
    > CC drivers/mmc/host/tmio_mmc.o
    > drivers/mmc/host/tmio_mmc.c: In function 'tmio_mmc_suspend':
    > drivers/mmc/host/tmio_mmc.c:30: warning: unused variable 'mmc'
    > drivers/mmc/host/tmio_mmc.c: In function 'tmio_mmc_resume':
    > drivers/mmc/host/tmio_mmc.c:45: warning: unused variable 'mmc'
    >
    > Signed-off-by: Axel Lin <axel.lin@gmail.com>

    Good for 3.1, do we also push such "harmless" compiler warning fixes to
    stable?

    Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>

    Thanks
    Guennadi

    > ---
    > drivers/mmc/host/tmio_mmc.c | 2 --
    > 1 files changed, 0 insertions(+), 2 deletions(-)
    >
    > diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c
    > index 8d185de..44a9668 100644
    > --- a/drivers/mmc/host/tmio_mmc.c
    > +++ b/drivers/mmc/host/tmio_mmc.c
    > @@ -27,7 +27,6 @@
    > static int tmio_mmc_suspend(struct platform_device *dev, pm_message_t state)
    > {
    > const struct mfd_cell *cell = mfd_get_cell(dev);
    > - struct mmc_host *mmc = platform_get_drvdata(dev);
    > int ret;
    >
    > ret = tmio_mmc_host_suspend(&dev->dev);
    > @@ -42,7 +41,6 @@ static int tmio_mmc_suspend(struct platform_device *dev, pm_message_t state)
    > static int tmio_mmc_resume(struct platform_device *dev)
    > {
    > const struct mfd_cell *cell = mfd_get_cell(dev);
    > - struct mmc_host *mmc = platform_get_drvdata(dev);
    > int ret = 0;
    >
    > /* Tell the MFD core we are ready to be enabled */
    > --
    > 1.7.4.1
    >
    >
    >

    ---
    Guennadi Liakhovetski, Ph.D.
    Freelance Open-Source Software Developer
    http://www.open-technology.de/


    \
     
     \ /
      Last update: 2011-08-03 09:29    [W:0.032 / U:3.564 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site