dma/shdma: move dereference below the NULL check
authorDan Carpenter <error27@gmail.com>
Sat, 14 Aug 2010 09:01:45 +0000 (11:01 +0200)
committerDan Williams <dan.j.williams@intel.com>
Wed, 22 Sep 2010 22:29:17 +0000 (15:29 -0700)
commit9f9ff20d46c6728b092f34b6a642e1e81ab5e254
treeecf89d4f01277ce8c747fee02a67c6fb5f217ca3
parentb30a3f6257ed2105259b404d419b4964e363928c
dma/shdma: move dereference below the NULL check

"param" can be NULL here, so only dereference it after the check.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/shdma.c