]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm: move dereference below check
authorDan Carpenter <error27@gmail.com>
Thu, 19 Aug 2010 09:46:29 +0000 (11:46 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 19 Aug 2010 22:48:44 +0000 (08:48 +1000)
commit09f0c489fa115a8b88a2da3edd0f3de00c8c7e2e
treef4134ff56b749de082d89afb1d8878b58a15023b
parent161c48100236916e98d33a9c8b5fc8eae6decd15
drm: move dereference below check

"fb_helper_conn" is dereferenced before the check for NULL.  It's never
actually NULL here, so this is mostly to keep the static checkers happy.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_helper.c