]> err.no Git - linux-2.6/commitdiff
V4L/DVB (3385): Return -EINVAL for unknown commands in msp3400 module.
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 15 Jan 2006 17:09:23 +0000 (15:09 -0200)
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>
Sun, 15 Jan 2006 23:26:11 +0000 (21:26 -0200)
- Return -EINVAL for unknown commands.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/msp3400-driver.c

index 09ff25b554b60dada013444d8602e021a733890f..69ed369c2f4801227f57c529123d5235bfd039ef 100644 (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;
 }