Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333823
b: refs/heads/master
c: 3f03742
h: refs/heads/master
i:
  333821: c2b71af
  333819: 02bfa8d
  333815: 51b1564
  333807: 0914bc7
  333791: acb20a3
  333759: 676d425
  333695: 29fe066
  333567: c3ac1f2
  333311: d65f6f0
  332799: 839ad0a
  331775: 12cfe29
v: v3
  • Loading branch information
Peter Senna Tschudin authored and Mauro Carvalho Chehab committed Oct 6, 2012
1 parent a35442a commit 57a241b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 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: 5f49908adb1ff4f0cec429923f1f49e79f318812
refs/heads/master: 3f037426d61027d40063a1fc2d00a08154c7c187
21 changes: 6 additions & 15 deletions trunk/drivers/media/dvb-frontends/dvb_dummy_fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,13 @@ struct dvb_frontend* dvb_dummy_fe_ofdm_attach(void)

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

/* create dvb_frontend */
memcpy(&state->frontend.ops, &dvb_dummy_fe_ofdm_ops, sizeof(struct dvb_frontend_ops));
state->frontend.demodulator_priv = state;
return &state->frontend;

error:
kfree(state);
return NULL;
}

static struct dvb_frontend_ops dvb_dummy_fe_qpsk_ops;
Expand All @@ -141,16 +138,13 @@ struct dvb_frontend *dvb_dummy_fe_qpsk_attach(void)

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

/* create dvb_frontend */
memcpy(&state->frontend.ops, &dvb_dummy_fe_qpsk_ops, sizeof(struct dvb_frontend_ops));
state->frontend.demodulator_priv = state;
return &state->frontend;

error:
kfree(state);
return NULL;
}

static struct dvb_frontend_ops dvb_dummy_fe_qam_ops;
Expand All @@ -161,16 +155,13 @@ struct dvb_frontend *dvb_dummy_fe_qam_attach(void)

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

/* create dvb_frontend */
memcpy(&state->frontend.ops, &dvb_dummy_fe_qam_ops, sizeof(struct dvb_frontend_ops));
state->frontend.demodulator_priv = state;
return &state->frontend;

error:
kfree(state);
return NULL;
}

static struct dvb_frontend_ops dvb_dummy_fe_ofdm_ops = {
Expand Down

0 comments on commit 57a241b

Please sign in to comment.