aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/video/saa7115.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-09-04 16:24:02 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-09-04 16:24:02 -0300
commitdb0a2901a32c44510d7d429358d017143a649a70 (patch)
tree4e4e41cf2e27aa4940f9c0711ca2a3bf7557a805 /drivers/media/video/saa7115.c
parentd210baf53b699fc61aa891c177b71d7082d3b957 (diff)
parent4cce1655b26a4df1e619b2aa3d2eea1b7a6e906c (diff)
Merge branch 'fixes_stg' of ../git_old into fixes
Diffstat (limited to 'drivers/media/video/saa7115.c')
-rw-r--r--drivers/media/video/saa7115.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/video/saa7115.c b/drivers/media/video/saa7115.c
index bcd1c8f6cf6..ad733caec72 100644
--- a/drivers/media/video/saa7115.c
+++ b/drivers/media/video/saa7115.c
@@ -1489,10 +1489,9 @@ static int saa7115_probe(struct i2c_client *client,
client->addr << 1, client->adapter->name);
state = kzalloc(sizeof(struct saa711x_state), GFP_KERNEL);
- i2c_set_clientdata(client, state);
- if (state == NULL) {
+ if (state == NULL)
return -ENOMEM;
- }
+ i2c_set_clientdata(client, state);
state->input = -1;
state->output = SAA7115_IPORT_ON;
state->enable = 1;