[media] mantis: cleanup NULL checking in mantis_ca_exit()
authorDan Carpenter <dan.carpenter@oracle.com>
Sun, 2 Dec 2012 09:43:13 +0000 (06:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 27 Dec 2012 22:25:38 +0000 (20:25 -0200)
commit1d6ca29db8b1f213de880b10ac28aed0a19c1d4a
tree61601634e9ce7d83fcc234d4683a00e007dfdcb9
parent081416e62d516a6412225751c9c4a3807b2374b9
[media] mantis: cleanup NULL checking in mantis_ca_exit()

Smatch complainst that the call to mantis_evmgr_exit() dereferences "ca"
but then we check it for NULL on the next line.  I've moved the NULL
check forward to avoid that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/mantis/mantis_ca.c