]> git.baikalelectronics.ru Git - kernel.git/commit
media: remove unused variable that causes a warning
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 21 Apr 2015 19:49:33 +0000 (12:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 21 Apr 2015 19:49:33 +0000 (12:49 -0700)
commit043c5c4035df4ad389fb94d55f967e26f1d2b2a9
treea89605b8510a9f9965e3353e02077866a59252e9
parente7d58866b0c25ef477931d29c3c666578eab1e49
media: remove unused variable that causes a warning

My 'allmodconfig' build is _almost_ free of warnings, and most of the
remaining ones are for legacy drivers that just do bad things that I
can't find it in my black heart to care too much about.  But this one
was just annoying me:

   drivers/media/v4l2-core/videobuf2-core.c:3256:26: warning: unused variable ‘fileio’ [-Wunused-variable]

because commit f3945cd09a25 ("[media] vb2: fix 'UNBALANCED' warnings
when calling vb2_thread_stop()") removed all users of 'fileio' and
instead calls "__vb2_cleanup_fileio(q)" to clean up q->fileio.  But the
now unused 'fileio' variable was left around.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/media/v4l2-core/videobuf2-core.c