From: Hans Verkuil Date: Sun, 15 Jan 2006 17:09:23 +0000 (-0200) Subject: V4L/DVB (3385): Return -EINVAL for unknown commands in msp3400 module. X-Git-Tag: v2.6.16.28-rc1~1393^2^2^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cb8d1aa78e31d7f3511c0b3f25f5a61a4687235f;p=karo-tx-linux.git V4L/DVB (3385): Return -EINVAL for unknown commands in msp3400 module. - Return -EINVAL for unknown commands. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/msp3400-driver.c b/drivers/media/video/msp3400-driver.c index 09ff25b554b6..69ed369c2f48 100644 --- a/drivers/media/video/msp3400-driver.c +++ b/drivers/media/video/msp3400-driver.c @@ -1031,8 +1031,8 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg) } default: - /* nothing */ - break; + /* unknown */ + return -EINVAL; } return 0; }