V4L/DVB: au0828: move dereference below sanity checks
authorDan Carpenter <error27@gmail.com>
Fri, 23 Jul 2010 10:09:20 +0000 (07:09 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 19:43:01 +0000 (16:43 -0300)
commitb5f5933a6ab63725aedfb92f015007d4ccd33a55
tree35d4dea28c9d670c19537c3347cf954a926eceb5
parent49b7a12c0aa217c9fb163d330b5b80bafe55cb8b
V4L/DVB: au0828: move dereference below sanity checks

This function has sanity checks to make sure that "dev" is non-null.  I
moved the dereference down below the checks.  In the current code "dev"
is never actually null.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/au0828/au0828-video.c