Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76337
b: refs/heads/master
c: a2e521e
h: refs/heads/master
i:
  76335: 2d62d93
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 4f3a5ad commit 32a28d2
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 188f3457c21ac7869005021b56b4578293c644bb
refs/heads/master: a2e521e85c04af3511af3ea8971efb4ef8bde533
8 changes: 5 additions & 3 deletions trunk/include/media/v4l2-i2c-drv-legacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ static int v4l2_i2c_drv_probe_legacy(struct i2c_adapter *adapter)

static int v4l2_i2c_drv_detach_legacy(struct i2c_client *client)
{
int err = i2c_detach_client(client);
int err;

if (err)
return err;
if (v4l2_i2c_data.remove)
v4l2_i2c_data.remove(client);

err = i2c_detach_client(client);
if (err)
return err;
kfree(client);

return 0;
Expand Down

0 comments on commit 32a28d2

Please sign in to comment.