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)
commit360772f26407b759ec3a91dda81fdbc74b7f7f2c
tree1c5ef14643e73bcdf205cac535c9db4b570aef5b
parentdd7d958ae9126b2d4a96e41340579049afebd2bf
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