aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/dvb-core/dvb_frontend.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c
index ff8cda0ac333..7fe9b3fb1e34 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -848,8 +848,7 @@ void dtv_property_dump(struct dtv_property *tvp)
848{ 848{
849 int i; 849 int i;
850 850
851 if( (tvp->cmd <= 0 || tvp->cmd > DTV_DELIVERY_SYSTEM) && 851 if (tvp->cmd <= 0 || tvp->cmd > DTV_MAX_COMMAND) {
852 tvp->cmd != DTV_API_VERSION) {
853 printk("%s: tvp.cmd = 0x%08x (undefined/unknown/invalid)\n", 852 printk("%s: tvp.cmd = 0x%08x (undefined/unknown/invalid)\n",
854 __func__, tvp->cmd); 853 __func__, tvp->cmd);
855 return; 854 return;