]> asedeno.scripts.mit.edu Git - linux.git/commit
media: atomisp: get rid of a warning
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 12 Apr 2018 09:44:33 +0000 (05:44 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 17 Apr 2018 09:50:04 +0000 (05:50 -0400)
commitca33f8f61a6e4376cc006b713a353e7200e66f59
treea5555ff9929a851dd7fbcc75ee17b170e2b71645
parentad4222a0e29664666a71685a6e732923ca7c7e45
media: atomisp: get rid of a warning

On smatch, this warning is trigged:

drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c:324 __bo_take_off_handling() error: we previously assumed 'bo->prev' could be null (see line 314)

Because it can't properly analize the truth table for the above
function. So, add an explicit check for the final condition there.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c