summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/stv0297.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/frontends/stv0297.c')
-rw-r--r--linux/drivers/media/dvb/frontends/stv0297.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/stv0297.c b/linux/drivers/media/dvb/frontends/stv0297.c
index 65255113f..502c6403d 100644
--- a/linux/drivers/media/dvb/frontends/stv0297.c
+++ b/linux/drivers/media/dvb/frontends/stv0297.c
@@ -758,8 +758,7 @@ struct dvb_frontend *stv0297_attach(const struct stv0297_config *config,
return &state->frontend;
error:
- if (state)
- kfree(state);
+ kfree(state);
return NULL;
}