]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
V4L/DVB (9420): return -EINVAL for invalid parameters
authorManu Abraham <abraham.manu@gmail.com>
Wed, 10 Oct 2007 09:12:13 +0000 (06:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:18 +0000 (17:53 -0200)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb0899_drv.c

index cc5db0e8ad06230b452335313da39aa812596b46..6e6373002b6c4210dce0967ecf7dce40f99877e4 100644 (file)
@@ -967,7 +967,7 @@ static int stb0899_read_signal_strength(struct dvb_frontend *fe, u16 *strength)
                break;
        default:
                dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system");
-               break;
+               return -EINVAL;
        }
 
        return 0;
@@ -1023,7 +1023,7 @@ static int stb0899_read_snr(struct dvb_frontend *fe, u16 *snr)
                break;
        default:
                dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system");
-               break;
+               return -EINVAL;
        }
 
        return 0;
@@ -1085,7 +1085,7 @@ static int stb0899_read_status(struct dvb_frontend *fe, enum fe_status *status)
                break;
        default:
                dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system");
-               break;
+               return -EINVAL;
        }
        return 0;
 }
@@ -1144,6 +1144,7 @@ static int stb0899_read_ber(struct dvb_frontend *fe, u32 *ber)
                break;
        default:
                dprintk(verbose, FE_DEBUG, 1, "Unsupported delivery system");
+               return -EINVAL;
        }
 
        return 0;
@@ -1201,7 +1202,7 @@ static int stb0899_set_tone(struct dvb_frontend *fe, fe_sec_tone_mode_t tone)
                stb0899_write_reg(state, STB0899_DISEQCOCFG, 0x20);
                break;
        default:
-               break;
+               return -EINVAL;
        }
        return 0;
 }