if (state == NULL) goto error; 
if (state == NULL) goto error; 
struct dvb_frontend* cx22702_attach(const struct cx22702_config* config,				    struct i2c_adapter* i2c){	struct cx22702_state* state = NULL;	/* allocate memory for the internal state */	state = kmalloc(sizeof(struct cx22702_state), GFP_KERNEL);	if (state == NULL) goto error;	/* setup the state */	state->config = config;	state->i2c = i2c;	memcpy(&state->ops, &cx22702_ops, sizeof(struct dvb_frontend_ops));	state->prevUCBlocks = 0;	/* check if the demod is there */	if (cx22702_readreg(state, 0x1f) != 0x3) goto error;	/* create dvb_frontend */	state->frontend.ops = &state->ops;	state->frontend.demodulator_priv = state;	return &state->frontend;error:	kfree(state);	return NULL;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/f46dbb050b5c7585c34b9ef717d81d6fee883f9b/cx22702.c/clean/drivers/media/dvb/frontends/cx22702.c