dbri: move dereference after check for NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 1 Dec 2016 05:48:30 +0000 (08:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2016 17:18:22 +0000 (12:18 -0500)
commit163117e8d4fd7a235ec48479e31bbda0c74eff56
tree3f5aa5e729a87e0b1fa9f78155442bbe675a75f9
parent88abd8249ee8bcebb98c90e890ea5e342db832af
dbri: move dereference after check for NULL

We accidentally introduced a dereference before the NULL check in
xmit_descs() as part of silencing a GCC warning.

Fixes: 16f46050e709 ("dbri: Fix compiler warning")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
sound/sparc/dbri.c