]> git.baikalelectronics.ru Git - kernel.git/commit
video: fbdev: matrox: the list iterator can't be NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Jul 2017 15:47:23 +0000 (17:47 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 4 Jul 2017 15:47:23 +0000 (17:47 +0200)
commitf3fa5e7300463a5cc9bb47a6ce2b7720f2ebc20c
tree1c5ef14643e73bcdf205cac535c9db4b570aef5b
parent8a8d373cbc62980089c6afbc70a78227d723896e
video: fbdev: matrox: the list iterator can't be NULL

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 <dan.carpenter@oracle.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/matrox/matroxfb_base.c