Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330770
b: refs/heads/master
c: 4aff355
h: refs/heads/master
v: v3
  • Loading branch information
Devendra Naga authored and Mauro Carvalho Chehab committed Aug 12, 2012
1 parent fb35209 commit c35d656
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 0bc9c894641ad7e2ef937a3e087e32652be35f47
refs/heads/master: 4aff355cd51378b6e9ca8c0a3961571ebafd1367
6 changes: 3 additions & 3 deletions trunk/drivers/staging/media/cxd2099/cxd2099.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,17 +683,17 @@ struct dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg *cfg,
void *priv,
struct i2c_adapter *i2c)
{
struct cxd *ci = 0;
struct cxd *ci;
u8 val;

if (i2c_read_reg(i2c, cfg->adr, 0, &val) < 0) {
printk(KERN_INFO "No CXD2099 detected at %02x\n", cfg->adr);
return 0;
return NULL;
}

ci = kmalloc(sizeof(struct cxd), GFP_KERNEL);
if (!ci)
return 0;
return NULL;
memset(ci, 0, sizeof(*ci));

mutex_init(&ci->lock);
Expand Down

0 comments on commit c35d656

Please sign in to comment.