diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-09-29 02:12:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-07 08:50:24 -0400 |
commit | 546196addefb2e25810964c41ce2186eba8cad4b (patch) | |
tree | 367578043cf9013fa8f960c266c4c61e11eb7848 /drivers/media | |
parent | 78ef81f6ea9649fd09d1fafcfa0ad68763172c42 (diff) |
[media] cx25821: testing the wrong variable
->input_filename could be NULL here. The intent was to test
->_filename.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/pci/cx25821/cx25821-video-upstream-ch2.c | 2 | ||||
-rw-r--r-- | drivers/media/pci/cx25821/cx25821-video-upstream.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/pci/cx25821/cx25821-video-upstream-ch2.c b/drivers/media/pci/cx25821/cx25821-video-upstream-ch2.c index c8c94fbf5d8d..d33fc1a23030 100644 --- a/drivers/media/pci/cx25821/cx25821-video-upstream-ch2.c +++ b/drivers/media/pci/cx25821/cx25821-video-upstream-ch2.c | |||
@@ -761,7 +761,7 @@ int cx25821_vidupstream_init_ch2(struct cx25821_dev *dev, int channel_select, | |||
761 | } | 761 | } |
762 | 762 | ||
763 | /* Default if filename is empty string */ | 763 | /* Default if filename is empty string */ |
764 | if (strcmp(dev->input_filename_ch2, "") == 0) { | 764 | if (strcmp(dev->_filename_ch2, "") == 0) { |
765 | if (dev->_isNTSC_ch2) { | 765 | if (dev->_isNTSC_ch2) { |
766 | dev->_filename_ch2 = (dev->_pixel_format_ch2 == | 766 | dev->_filename_ch2 = (dev->_pixel_format_ch2 == |
767 | PIXEL_FRMT_411) ? "/root/vid411.yuv" : | 767 | PIXEL_FRMT_411) ? "/root/vid411.yuv" : |
diff --git a/drivers/media/pci/cx25821/cx25821-video-upstream.c b/drivers/media/pci/cx25821/cx25821-video-upstream.c index 52c13e0b6492..6759fff8eb64 100644 --- a/drivers/media/pci/cx25821/cx25821-video-upstream.c +++ b/drivers/media/pci/cx25821/cx25821-video-upstream.c | |||
@@ -808,7 +808,7 @@ int cx25821_vidupstream_init_ch1(struct cx25821_dev *dev, int channel_select, | |||
808 | } | 808 | } |
809 | 809 | ||
810 | /* Default if filename is empty string */ | 810 | /* Default if filename is empty string */ |
811 | if (strcmp(dev->input_filename, "") == 0) { | 811 | if (strcmp(dev->_filename, "") == 0) { |
812 | if (dev->_isNTSC) { | 812 | if (dev->_isNTSC) { |
813 | dev->_filename = | 813 | dev->_filename = |
814 | (dev->_pixel_format == PIXEL_FRMT_411) ? | 814 | (dev->_pixel_format == PIXEL_FRMT_411) ? |