Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76338
b: refs/heads/master
c: 393bf55
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 32a28d2 commit 8a0e58d
Show file tree
Hide file tree
Showing 2 changed files with 3 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: a2e521e85c04af3511af3ea8971efb4ef8bde533
refs/heads/master: 393bf5573269979aa3fb55d1bdd0db4fcb288f99
5 changes: 2 additions & 3 deletions trunk/drivers/media/video/v4l2-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1028,13 +1028,12 @@ int v4l2_i2c_attach(struct i2c_adapter *adapter, int address, struct i2c_driver
client->addr = address;
client->adapter = adapter;
client->driver = driver;
snprintf(client->name, sizeof(client->name) - 1, name);
strlcpy(client->name, name, sizeof(client->name));

err = probe(client);
if (err == 0) {
i2c_attach_client(client);
}
else {
} else {
kfree(client);
}
return err != -ENOMEM ? 0 : err;
Expand Down

0 comments on commit 8a0e58d

Please sign in to comment.