dmaengine: Use Pointer xt after NULL check.
authorManinder Singh <maninder1.s@samsung.com>
Fri, 26 Jun 2015 10:34:48 +0000 (16:04 +0530)
committerVinod Koul <vinod.koul@intel.com>
Tue, 7 Jul 2015 04:22:11 +0000 (09:52 +0530)
commit4483320e241c5f6b63caa912343eb73c8b1dfd18
tree31595e8637f7cce4e951d2f5c5e6d5fc81f5e8e1
parentfce9a74ba46fb545ad81cf244f3a1af4a877606c
dmaengine: Use Pointer xt after NULL check.

Removing static analysis error:-
Possible null pointer dereference: xt

Because currently xt is dereferenced before NULL check,
Thus Use it after NULL Check.

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Reviewed-by: Vaneet Narang <v.narang@samsung.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_hdmac.c