diff options
author | Nickolay V. Shmyrev <devnull@localhost> | 2005-06-17 21:34:59 +0000 |
---|---|---|
committer | Nickolay V. Shmyrev <devnull@localhost> | 2005-06-17 21:34:59 +0000 |
commit | 14ed24459c664d28f7d6bf6b61ae3405079b6c38 (patch) | |
tree | 5946cd254e3655227f051bcd1e88a3ecdd346eeb | |
parent | a085c62e8b7277e8802f295059ad35a8fcb73e2e (diff) | |
download | mediapointer-dvb-s2-14ed24459c664d28f7d6bf6b61ae3405079b6c38.tar.gz mediapointer-dvb-s2-14ed24459c664d28f7d6bf6b61ae3405079b6c38.tar.bz2 |
Fix compilation warning
-rw-r--r-- | v4l/lgdt3302.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/v4l/lgdt3302.c b/v4l/lgdt3302.c index 92e50d7c9..eea0deb7a 100644 --- a/v4l/lgdt3302.c +++ b/v4l/lgdt3302.c @@ -537,6 +537,7 @@ struct dvb_frontend* lgdt3302_attach(const struct lgdt3302_config* config, struct i2c_adapter* i2c) { struct lgdt3302_state* state = NULL; + u8 buf[1]; /* Allocate memory for the internal state */ state = (struct lgdt3302_state*) kmalloc(sizeof(struct lgdt3302_state), GFP_KERNEL); @@ -549,7 +550,6 @@ struct dvb_frontend* lgdt3302_attach(const struct lgdt3302_config* config, state->i2c = i2c; memcpy(&state->ops, &lgdt3302_ops, sizeof(struct dvb_frontend_ops)); /* Verify communication with demod chip */ - u8 buf[1]; if (i2c_selectreadbytes(state, 2, buf, 1)) goto error; |