From c7c5c22f512e0129d00744e809e4830425502dc5 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Sun, 15 Jan 2006 17:09:23 +0000 Subject: Return -EINVAL for unknown commands in msp3400 module. - Return -EINVAL for unknown commands. Requested by Mike Isely. Signed-off-by: Hans Verkuil --- linux/drivers/media/video/msp3400-driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media/video') diff --git a/linux/drivers/media/video/msp3400-driver.c b/linux/drivers/media/video/msp3400-driver.c index 0c64f9469..d50f8cac1 100644 --- a/linux/drivers/media/video/msp3400-driver.c +++ b/linux/drivers/media/video/msp3400-driver.c @@ -1083,8 +1083,8 @@ static int msp_command(struct i2c_client *client, unsigned int cmd, void *arg) } default: - /* nothing */ - break; + /* unknown */ + return -EINVAL; } return 0; } -- cgit v1.2.3