summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorHans Verkuil <devnull@localhost>2006-01-15 17:09:23 +0000
committerHans Verkuil <devnull@localhost>2006-01-15 17:09:23 +0000
commitc7c5c22f512e0129d00744e809e4830425502dc5 (patch)
tree9d7e843eeab8a43532999f8aacfc087985bdda3d /linux/drivers/media/video
parentee85df059556084843983da015dd2f36f36300f7 (diff)
downloadmediapointer-dvb-s2-c7c5c22f512e0129d00744e809e4830425502dc5.tar.gz
mediapointer-dvb-s2-c7c5c22f512e0129d00744e809e4830425502dc5.tar.bz2
Return -EINVAL for unknown commands in msp3400 module.
- Return -EINVAL for unknown commands. Requested by Mike Isely. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/msp3400-driver.c4
1 files changed, 2 insertions, 2 deletions
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;
}