]> err.no Git - linux-2.6/blobdiff - drivers/media/video/msp3400-driver.c
V4L/DVB (3385): Return -EINVAL for unknown commands in msp3400 module.
[linux-2.6] / 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;
 }