summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <devnull@localhost>2005-06-17 21:34:59 +0000
committerNickolay V. Shmyrev <devnull@localhost>2005-06-17 21:34:59 +0000
commit14ed24459c664d28f7d6bf6b61ae3405079b6c38 (patch)
tree5946cd254e3655227f051bcd1e88a3ecdd346eeb
parenta085c62e8b7277e8802f295059ad35a8fcb73e2e (diff)
downloadmediapointer-dvb-s2-14ed24459c664d28f7d6bf6b61ae3405079b6c38.tar.gz
mediapointer-dvb-s2-14ed24459c664d28f7d6bf6b61ae3405079b6c38.tar.bz2
Fix compilation warning
-rw-r--r--v4l/lgdt3302.c2
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;