* [PATCH] fpga: dfl: fme: remove set but not used variable 'fme'
@ 2019-12-26 12:16 ` yu kuai
0 siblings, 0 replies; 7+ messages in thread
From: yu kuai @ 2019-12-26 12:16 UTC (permalink / raw)
To: hao.wu, mdf; +Cc: linux-fpga, linux-kernel, yukuai3, yi.zhang, zhengbin13
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/fpga/dfl-fme-main.c: In function ‘fme_dev_destroy’:
drivers/fpga/dfl-fme-main.c:678:18: warning: variable ‘fme’ set but not
used [-Wunused-but-set-variable]
It is never used and so can be removed.
Signed-off-by: yu kuai <yukuai3@huawei.com>
---
drivers/fpga/dfl-fme-main.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/fpga/dfl-fme-main.c b/drivers/fpga/dfl-fme-main.c
index 7c930e6b314d..1d4690c99268 100644
--- a/drivers/fpga/dfl-fme-main.c
+++ b/drivers/fpga/dfl-fme-main.c
@@ -675,10 +675,8 @@ static int fme_dev_init(struct platform_device *pdev)
static void fme_dev_destroy(struct platform_device *pdev)
{
struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev);
- struct dfl_fme *fme;
mutex_lock(&pdata->lock);
- fme = dfl_fpga_pdata_get_private(pdata);
dfl_fpga_pdata_set_private(pdata, NULL);
mutex_unlock(&pdata->lock);
}
--
2.17.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] fpga: dfl: fme: remove set but not used variable 'fme'
@ 2019-12-26 12:16 ` yu kuai
0 siblings, 0 replies; 7+ messages in thread
From: yu kuai @ 2019-12-26 12:16 UTC (permalink / raw)
To: hao.wu, mdf; +Cc: linux-fpga, linux-kernel, yukuai3, yi.zhang, zhengbin13
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/fpga/dfl-fme-main.c: In function ‘fme_dev_destroy’:
drivers/fpga/dfl-fme-main.c:678:18: warning: variable ‘fme’ set but not
used [-Wunused-but-set-variable]
It is never used and so can be removed.
Signed-off-by: yu kuai <yukuai3@huawei.com>
---
drivers/fpga/dfl-fme-main.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/fpga/dfl-fme-main.c b/drivers/fpga/dfl-fme-main.c
index 7c930e6b314d..1d4690c99268 100644
--- a/drivers/fpga/dfl-fme-main.c
+++ b/drivers/fpga/dfl-fme-main.c
@@ -675,10 +675,8 @@ static int fme_dev_init(struct platform_device *pdev)
static void fme_dev_destroy(struct platform_device *pdev)
{
struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev);
- struct dfl_fme *fme;
mutex_lock(&pdata->lock);
- fme = dfl_fpga_pdata_get_private(pdata);
dfl_fpga_pdata_set_private(pdata, NULL);
mutex_unlock(&pdata->lock);
}
--
2.17.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] fpga: dfl: fme: remove set but not used variable 'fme'
2019-12-26 12:16 ` yu kuai
@ 2019-12-27 22:57 ` Moritz Fischer
-1 siblings, 0 replies; 7+ messages in thread
From: Moritz Fischer @ 2019-12-27 22:57 UTC (permalink / raw)
To: yu kuai; +Cc: hao.wu, mdf, linux-fpga, linux-kernel, yi.zhang, zhengbin13
On Thu, Dec 26, 2019 at 08:16:38PM +0800, yu kuai wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/fpga/dfl-fme-main.c: In function ‘fme_dev_destroy’:
> drivers/fpga/dfl-fme-main.c:678:18: warning: variable ‘fme’ set but not
> used [-Wunused-but-set-variable]
>
> It is never used and so can be removed.
>
> Signed-off-by: yu kuai <yukuai3@huawei.com>
> ---
> drivers/fpga/dfl-fme-main.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/fpga/dfl-fme-main.c b/drivers/fpga/dfl-fme-main.c
> index 7c930e6b314d..1d4690c99268 100644
> --- a/drivers/fpga/dfl-fme-main.c
> +++ b/drivers/fpga/dfl-fme-main.c
> @@ -675,10 +675,8 @@ static int fme_dev_init(struct platform_device *pdev)
> static void fme_dev_destroy(struct platform_device *pdev)
> {
> struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev);
> - struct dfl_fme *fme;
>
> mutex_lock(&pdata->lock);
> - fme = dfl_fpga_pdata_get_private(pdata);
> dfl_fpga_pdata_set_private(pdata, NULL);
> mutex_unlock(&pdata->lock);
> }
> --
> 2.17.2
>
Acked-by: Moritz Fischer <mdf@kernel.org>
Thanks,
Moritz
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] fpga: dfl: fme: remove set but not used variable 'fme'
@ 2019-12-27 22:57 ` Moritz Fischer
0 siblings, 0 replies; 7+ messages in thread
From: Moritz Fischer @ 2019-12-27 22:57 UTC (permalink / raw)
To: yu kuai; +Cc: hao.wu, mdf, linux-fpga, linux-kernel, yi.zhang, zhengbin13
On Thu, Dec 26, 2019 at 08:16:38PM +0800, yu kuai wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/fpga/dfl-fme-main.c: In function ‘fme_dev_destroy’:
> drivers/fpga/dfl-fme-main.c:678:18: warning: variable ‘fme’ set but not
> used [-Wunused-but-set-variable]
>
> It is never used and so can be removed.
>
> Signed-off-by: yu kuai <yukuai3@huawei.com>
> ---
> drivers/fpga/dfl-fme-main.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/fpga/dfl-fme-main.c b/drivers/fpga/dfl-fme-main.c
> index 7c930e6b314d..1d4690c99268 100644
> --- a/drivers/fpga/dfl-fme-main.c
> +++ b/drivers/fpga/dfl-fme-main.c
> @@ -675,10 +675,8 @@ static int fme_dev_init(struct platform_device *pdev)
> static void fme_dev_destroy(struct platform_device *pdev)
> {
> struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev);
> - struct dfl_fme *fme;
>
> mutex_lock(&pdata->lock);
> - fme = dfl_fpga_pdata_get_private(pdata);
> dfl_fpga_pdata_set_private(pdata, NULL);
> mutex_unlock(&pdata->lock);
> }
> --
> 2.17.2
>
Acked-by: Moritz Fischer <mdf@kernel.org>
Thanks,
Moritz
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] fpga: dfl: fme: remove set but not used variable 'fme'
2019-12-27 22:57 ` Moritz Fischer
(?)
@ 2019-12-30 1:51 ` Wu Hao
2020-01-03 4:49 ` Moritz Fischer
-1 siblings, 1 reply; 7+ messages in thread
From: Wu Hao @ 2019-12-30 1:51 UTC (permalink / raw)
To: Moritz Fischer; +Cc: yu kuai, linux-fpga, linux-kernel, yi.zhang, zhengbin13
On Fri, Dec 27, 2019 at 02:57:26PM -0800, Moritz Fischer wrote:
> On Thu, Dec 26, 2019 at 08:16:38PM +0800, yu kuai wrote:
> > Fixes gcc '-Wunused-but-set-variable' warning:
> >
> > drivers/fpga/dfl-fme-main.c: In function ‘fme_dev_destroy’:
> > drivers/fpga/dfl-fme-main.c:678:18: warning: variable ‘fme’ set but not
> > used [-Wunused-but-set-variable]
> >
> > It is never used and so can be removed.
> >
> > Signed-off-by: yu kuai <yukuai3@huawei.com>
> > ---
> > drivers/fpga/dfl-fme-main.c | 2 --
> > 1 file changed, 2 deletions(-)
> >
> > diff --git a/drivers/fpga/dfl-fme-main.c b/drivers/fpga/dfl-fme-main.c
> > index 7c930e6b314d..1d4690c99268 100644
> > --- a/drivers/fpga/dfl-fme-main.c
> > +++ b/drivers/fpga/dfl-fme-main.c
> > @@ -675,10 +675,8 @@ static int fme_dev_init(struct platform_device *pdev)
> > static void fme_dev_destroy(struct platform_device *pdev)
> > {
> > struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev);
> > - struct dfl_fme *fme;
> >
> > mutex_lock(&pdata->lock);
> > - fme = dfl_fpga_pdata_get_private(pdata);
> > dfl_fpga_pdata_set_private(pdata, NULL);
> > mutex_unlock(&pdata->lock);
> > }
> > --
> > 2.17.2
> >
> Acked-by: Moritz Fischer <mdf@kernel.org>
Acked-by: Wu Hao <hao.wu@intel.com>
Thanks
Hao
>
> Thanks,
> Moritz
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] fpga: dfl: fme: remove set but not used variable 'fme'
2019-12-30 1:51 ` Wu Hao
@ 2020-01-03 4:49 ` Moritz Fischer
0 siblings, 0 replies; 7+ messages in thread
From: Moritz Fischer @ 2020-01-03 4:49 UTC (permalink / raw)
To: Wu Hao
Cc: Moritz Fischer, yu kuai, linux-fpga, linux-kernel, yi.zhang, zhengbin13
On Mon, Dec 30, 2019 at 09:51:40AM +0800, Wu Hao wrote:
> On Fri, Dec 27, 2019 at 02:57:26PM -0800, Moritz Fischer wrote:
> > On Thu, Dec 26, 2019 at 08:16:38PM +0800, yu kuai wrote:
> > > Fixes gcc '-Wunused-but-set-variable' warning:
> > >
> > > drivers/fpga/dfl-fme-main.c: In function ‘fme_dev_destroy’:
> > > drivers/fpga/dfl-fme-main.c:678:18: warning: variable ‘fme’ set but not
> > > used [-Wunused-but-set-variable]
> > >
> > > It is never used and so can be removed.
> > >
> > > Signed-off-by: yu kuai <yukuai3@huawei.com>
> > > ---
> > > drivers/fpga/dfl-fme-main.c | 2 --
> > > 1 file changed, 2 deletions(-)
> > >
> > > diff --git a/drivers/fpga/dfl-fme-main.c b/drivers/fpga/dfl-fme-main.c
> > > index 7c930e6b314d..1d4690c99268 100644
> > > --- a/drivers/fpga/dfl-fme-main.c
> > > +++ b/drivers/fpga/dfl-fme-main.c
> > > @@ -675,10 +675,8 @@ static int fme_dev_init(struct platform_device *pdev)
> > > static void fme_dev_destroy(struct platform_device *pdev)
> > > {
> > > struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev);
> > > - struct dfl_fme *fme;
> > >
> > > mutex_lock(&pdata->lock);
> > > - fme = dfl_fpga_pdata_get_private(pdata);
> > > dfl_fpga_pdata_set_private(pdata, NULL);
> > > mutex_unlock(&pdata->lock);
> > > }
> > > --
> > > 2.17.2
> > >
> > Acked-by: Moritz Fischer <mdf@kernel.org>
>
> Acked-by: Wu Hao <hao.wu@intel.com>
>
> Thanks
> Hao
>
> >
> > Thanks,
> > Moritz
Applied to for-next.
Thanks,
Moritz
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] fpga: dfl: fme: remove set but not used variable 'fme'
@ 2020-01-03 4:49 ` Moritz Fischer
0 siblings, 0 replies; 7+ messages in thread
From: Moritz Fischer @ 2020-01-03 4:49 UTC (permalink / raw)
To: Wu Hao
Cc: Moritz Fischer, yu kuai, linux-fpga, linux-kernel, yi.zhang, zhengbin13
On Mon, Dec 30, 2019 at 09:51:40AM +0800, Wu Hao wrote:
> On Fri, Dec 27, 2019 at 02:57:26PM -0800, Moritz Fischer wrote:
> > On Thu, Dec 26, 2019 at 08:16:38PM +0800, yu kuai wrote:
> > > Fixes gcc '-Wunused-but-set-variable' warning:
> > >
> > > drivers/fpga/dfl-fme-main.c: In function ‘fme_dev_destroy’:
> > > drivers/fpga/dfl-fme-main.c:678:18: warning: variable ‘fme’ set but not
> > > used [-Wunused-but-set-variable]
> > >
> > > It is never used and so can be removed.
> > >
> > > Signed-off-by: yu kuai <yukuai3@huawei.com>
> > > ---
> > > drivers/fpga/dfl-fme-main.c | 2 --
> > > 1 file changed, 2 deletions(-)
> > >
> > > diff --git a/drivers/fpga/dfl-fme-main.c b/drivers/fpga/dfl-fme-main.c
> > > index 7c930e6b314d..1d4690c99268 100644
> > > --- a/drivers/fpga/dfl-fme-main.c
> > > +++ b/drivers/fpga/dfl-fme-main.c
> > > @@ -675,10 +675,8 @@ static int fme_dev_init(struct platform_device *pdev)
> > > static void fme_dev_destroy(struct platform_device *pdev)
> > > {
> > > struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev);
> > > - struct dfl_fme *fme;
> > >
> > > mutex_lock(&pdata->lock);
> > > - fme = dfl_fpga_pdata_get_private(pdata);
> > > dfl_fpga_pdata_set_private(pdata, NULL);
> > > mutex_unlock(&pdata->lock);
> > > }
> > > --
> > > 2.17.2
> > >
> > Acked-by: Moritz Fischer <mdf@kernel.org>
>
> Acked-by: Wu Hao <hao.wu@intel.com>
>
> Thanks
> Hao
>
> >
> > Thanks,
> > Moritz
Applied to for-next.
Thanks,
Moritz
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-01-03 4:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-26 12:16 [PATCH] fpga: dfl: fme: remove set but not used variable 'fme' yu kuai
2019-12-26 12:16 ` yu kuai
2019-12-27 22:57 ` Moritz Fischer
2019-12-27 22:57 ` Moritz Fischer
2019-12-30 1:51 ` Wu Hao
2020-01-03 4:49 ` Moritz Fischer
2020-01-03 4:49 ` Moritz Fischer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.