V4L/DVB (8790): saa7115: call i2c_set_clientdata only when state != NULL
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 3 Sep 2008 20:12:09 +0000 (17:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 3 Sep 2008 21:37:18 +0000 (18:37 -0300)
commitc5bf204f42423f49d7ea34f14eef92780204e168
treeb6a835a5e72052fa22963f7b30fa0f1baf559bad
parentdc60de338f4b2d445a24d4e36bbc994f3badb406
V4L/DVB (8790): saa7115: call i2c_set_clientdata only when state != NULL

Not a bug as such, but it looks really strange doing this before
checking whether the state structure could be allocated.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7115.c