Re: [PATCH] staging: video: fix warning unused variable

From: Greg KH
Date: Mon May 14 2018 - 07:02:15 EST


On Mon, May 14, 2018 at 12:54:42PM +0200, Anders Roxell wrote:
> When building video warnings pops up unused variable 'mdev',
> drivers/staging/most/video/video.c: In function âvidioc_enum_fmt_vid_capâ:
> drivers/staging/most/video/video.c:265:25: warning: unused variable âmdevâ [-Wunused-variable]
> struct most_video_dev *mdev = fh->mdev;
> ^~~~
> drivers/staging/most/video/video.c: In function âvidioc_g_fmt_vid_capâ:
> drivers/staging/most/video/video.c:282:25: warning: unused variable âmdevâ [-Wunused-variable]
> struct most_video_dev *mdev = fh->mdev;
> ^~~~
> drivers/staging/most/video/video.c: In function âvidioc_g_stdâ:
> drivers/staging/most/video/video.c:309:25: warning: unused variable âmdevâ [-Wunused-variable]
> struct most_video_dev *mdev = fh->mdev;
> ^~~~
>
> Remove the 'mdev' declaration.
>
> Fixes: 7d7cdb4fa552 ("staging: most: video: remove debugging code")
> Signed-off-by: Anders Roxell <anders.roxell@xxxxxxxxxx>
> ---
> drivers/staging/most/video/video.c | 9 ---------
> 1 file changed, 9 deletions(-)

I posted the same exact fix about an hour ago, sorry.

greg k-h