V4L/DVB (3385): Return -EINVAL for unknown commands in msp3400 module.

- Return -EINVAL for unknown commands.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
Hans Verkuil 2006-01-15 15:09:23 -02:00 committed by Mauro Carvalho Chehab
parent 27487d4471
commit cb8d1aa78e

View file

@ -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;
}