]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2cfa5ae0082052653481da2f0be48f878c15ce21
treeb6a835a5e72052fa22963f7b30fa0f1baf559bad
parent89048a3f8a23b7631e2e60f9ce7410ab286074c8
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