aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/dvb-frontends/stb6100.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/dvb-frontends/stb6100.c b/drivers/media/dvb-frontends/stb6100.c
index 2e93e65d2cdb..45f9523f968f 100644
--- a/drivers/media/dvb-frontends/stb6100.c
+++ b/drivers/media/dvb-frontends/stb6100.c
@@ -575,8 +575,8 @@ struct dvb_frontend *stb6100_attach(struct dvb_frontend *fe,
575 struct stb6100_state *state = NULL; 575 struct stb6100_state *state = NULL;
576 576
577 state = kzalloc(sizeof (struct stb6100_state), GFP_KERNEL); 577 state = kzalloc(sizeof (struct stb6100_state), GFP_KERNEL);
578 if (state == NULL) 578 if (!state)
579 goto error; 579 return NULL;
580 580
581 state->config = config; 581 state->config = config;
582 state->i2c = i2c; 582 state->i2c = i2c;
@@ -587,10 +587,6 @@ struct dvb_frontend *stb6100_attach(struct dvb_frontend *fe,
587 587
588 printk("%s: Attaching STB6100 \n", __func__); 588 printk("%s: Attaching STB6100 \n", __func__);
589 return fe; 589 return fe;
590
591error:
592 kfree(state);
593 return NULL;
594} 590}
595 591
596static int stb6100_release(struct dvb_frontend *fe) 592static int stb6100_release(struct dvb_frontend *fe)