Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4320
b: refs/heads/master
c: 771e715
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jul 8, 2005
1 parent 1ae3f17 commit c5f49f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3dff919425dd79954447e6ab39807b4c27ba3089
refs/heads/master: 771e71570ce4da549fe89978de0a29e3299d7fb7
14 changes: 4 additions & 10 deletions trunk/drivers/media/dvb/ttusb-dec/ttusbdecfe.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ struct dvb_frontend* ttusbdecfe_dvbt_attach(const struct ttusbdecfe_config* conf

/* allocate memory for the internal state */
state = (struct ttusbdecfe_state*) kmalloc(sizeof(struct ttusbdecfe_state), GFP_KERNEL);
if (state == NULL) goto error;
if (state == NULL)
return NULL;

/* setup the state */
state->config = config;
Expand All @@ -167,10 +168,6 @@ struct dvb_frontend* ttusbdecfe_dvbt_attach(const struct ttusbdecfe_config* conf
state->frontend.ops = &state->ops;
state->frontend.demodulator_priv = state;
return &state->frontend;

error:
kfree(state);
return NULL;
}

static struct dvb_frontend_ops ttusbdecfe_dvbs_ops;
Expand All @@ -181,7 +178,8 @@ struct dvb_frontend* ttusbdecfe_dvbs_attach(const struct ttusbdecfe_config* conf

/* allocate memory for the internal state */
state = (struct ttusbdecfe_state*) kmalloc(sizeof(struct ttusbdecfe_state), GFP_KERNEL);
if (state == NULL) goto error;
if (state == NULL)
return NULL;

/* setup the state */
state->config = config;
Expand All @@ -193,10 +191,6 @@ struct dvb_frontend* ttusbdecfe_dvbs_attach(const struct ttusbdecfe_config* conf
state->frontend.ops = &state->ops;
state->frontend.demodulator_priv = state;
return &state->frontend;

error:
kfree(state);
return NULL;
}

static struct dvb_frontend_ops ttusbdecfe_dvbt_ops = {
Expand Down

0 comments on commit c5f49f7

Please sign in to comment.