From: Hans Verkuil <hans.verk...@cisco.com>

v4l-dvb-git/drivers/media/video/vpx3220.c: In function 'vpx3220_status':
v4l-dvb-git/drivers/media/video/vpx3220.c:299:6: warning: variable 'res' set 
but not used [-Wunused-but-set-variable]
v4l-dvb-git/drivers/media/video/bt819.c: In function 'bt819_status':
v4l-dvb-git/drivers/media/video/bt819.c:219:6: warning: variable 'res' set but 
not used [-Wunused-but-set-variable]

Same status/res mixup.

Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>
---
 drivers/media/video/bt819.c   |    2 +-
 drivers/media/video/vpx3220.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/video/bt819.c b/drivers/media/video/bt819.c
index f872044..859eabf 100644
--- a/drivers/media/video/bt819.c
+++ b/drivers/media/video/bt819.c
@@ -229,7 +229,7 @@ static int bt819_status(struct v4l2_subdev *sd, u32 
*pstatus, v4l2_std_id *pstd)
        if (pstd)
                *pstd = std;
        if (pstatus)
-               *pstatus = status;
+               *pstatus = res;
 
        v4l2_dbg(1, debug, sd, "get status %x\n", status);
        return 0;
diff --git a/drivers/media/video/vpx3220.c b/drivers/media/video/vpx3220.c
index ca372eb..e5cad6f 100644
--- a/drivers/media/video/vpx3220.c
+++ b/drivers/media/video/vpx3220.c
@@ -331,7 +331,7 @@ static int vpx3220_status(struct v4l2_subdev *sd, u32 
*pstatus, v4l2_std_id *pst
        if (pstd)
                *pstd = std;
        if (pstatus)
-               *pstatus = status;
+               *pstatus = res;
        return 0;
 }
 
-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to