summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/as102_fe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb-frontends/as102_fe.c')
-rw-r--r--drivers/media/dvb-frontends/as102_fe.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/dvb-frontends/as102_fe.c b/drivers/media/dvb-frontends/as102_fe.c
index 98d575f2744c..1fb4ab21d786 100644
--- a/drivers/media/dvb-frontends/as102_fe.c
+++ b/drivers/media/dvb-frontends/as102_fe.c
@@ -456,10 +456,9 @@ struct dvb_frontend *as102_attach(const char *name,
struct dvb_frontend *fe;
state = kzalloc(sizeof(struct as102_state), GFP_KERNEL);
- if (state == NULL) {
- pr_err("%s: unable to allocate memory for state\n", __func__);
+ if (!state)
return NULL;
- }
+
fe = &state->frontend;
fe->demodulator_priv = state;
state->ops = ops;