]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vt6655: Fix unused function warning
authorGuillaume Clement <gclement@baobob.org>
Tue, 22 Jul 2014 20:08:30 +0000 (22:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jul 2014 22:03:13 +0000 (15:03 -0700)
commitaa293179c6f4b62745463667590f3a08e832c966
tree8d944b8f448ac685f178e257e67483a5b46b6e93
parent7821825a3a4b73d46c944355b0580eda1f92fcd6
staging: vt6655: Fix unused function warning

Sparse reports that MimeThread is not used. Actually, it can be used
if THREAD is defined. By enclosing the MimeThread function into the
same #ifdef as the caller of MimeThread, this fixes the sparse
warnings.

Signed-off-by: Guillaume Clement <gclement@baobob.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c