video: fbdev: matrox: the list iterator can't be NULL
Subsystems (2)
Quoted 5 lines · Dan Carpenter
My static checker is complaining because we check "drv" for NULL and then we dereference it to get the next item in the list. It can't be NULL so we can remove this check.
Signed-off-by Dan Carpenter <[email protected]>
Patch queued for 4.13, thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics