media: staging: atomisp: don't access a NULL var
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 26 Mar 2018 18:54:47 +0000 (14:54 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 4 Apr 2018 11:36:27 +0000 (07:36 -0400)
commit8b1a2468cf8afcf2f2e0a113a32bef4a42298cff
treee48327c2923b3787b0c36844725bc8ac4b584a62
parent6dfc6a3f66fbeed1be8fb5a376339d3dcb7545c3
media: staging: atomisp: don't access a NULL var

Get rid of those warnings:
drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c:446 gmin_v1p2_ctrl() error: we previously assumed 'gs' could be null (see line 444)
drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c:480 gmin_v1p8_ctrl() error: we previously assumed 'gs' could be null (see line 478)
drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c:516 gmin_v2p8_ctrl() error: we previously assumed 'gs' could be null (see line 514)

Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c