diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-08-07 04:32:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:18:49 -0400 |
commit | f19b56a8eb54d758bff94ae6a1b4f79335155238 (patch) | |
tree | 6d20d6c2587ef4e2fbc71d945c0790479a8fa2bb /drivers | |
parent | 6bf1a997ed135df322e64b6f604227f6fdc54865 (diff) |
V4L/DVB (12426): pvrusb2: fix compile warning
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-audio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-audio.c b/drivers/media/video/pvrusb2/pvrusb2-audio.c index 416933ca607..cc06d5e4adc 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-audio.c +++ b/drivers/media/video/pvrusb2/pvrusb2-audio.c | |||
@@ -65,9 +65,10 @@ void pvr2_msp3400_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) | |||
65 | u32 input; | 65 | u32 input; |
66 | 66 | ||
67 | pvr2_trace(PVR2_TRACE_CHIPS, "subdev msp3400 v4l2 set_stereo"); | 67 | pvr2_trace(PVR2_TRACE_CHIPS, "subdev msp3400 v4l2 set_stereo"); |
68 | sp = (sid < ARRAY_SIZE(routing_schemes)) ? | ||
69 | routing_schemes[sid] : NULL; | ||
68 | 70 | ||
69 | if ((sid < ARRAY_SIZE(routing_schemes)) && | 71 | if ((sp != NULL) && |
70 | ((sp = routing_schemes[sid]) != NULL) && | ||
71 | (hdw->input_val >= 0) && | 72 | (hdw->input_val >= 0) && |
72 | (hdw->input_val < sp->cnt)) { | 73 | (hdw->input_val < sp->cnt)) { |
73 | input = sp->def[hdw->input_val]; | 74 | input = sp->def[hdw->input_val]; |