[media] mt9v032: fix uninitialized variable warning
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 28 Jul 2015 08:33:55 +0000 (05:33 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 13:27:18 +0000 (10:27 -0300)
commit8e8a6b23f115906678252190c8fcf4168cc60fd5
treead77356a25f06d12c77c91c9dc913fb2a57c9c65
parent9deb6ad661c1656dc770d35336a84b0d885c3ff2
[media] mt9v032: fix uninitialized variable warning

drivers/media/i2c/mt9v032.c: In function ‘mt9v032_probe’:
  CC [M]  drivers/media/i2c/s5k4ecgx.o
drivers/media/i2c/mt9v032.c:996:20: warning: ‘pdata’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  if (pdata && pdata->link_freqs) {
                    ^

It can indeed be uninitialized in one corner case. Initialize to NULL.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/mt9v032.c