From: Maninder Singh Date: Mon, 25 May 2015 19:10:05 +0000 (+0530) Subject: dmaengine: pl330: Initialize pl330 for pl330_prep_dma_memcpy after NULL check of pch X-Git-Tag: omap-for-v4.3/legacy-v2-signed~103^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5636854f3fcee3dcb45a9d0122cf099e72615e5;p=pandora-kernel.git dmaengine: pl330: Initialize pl330 for pl330_prep_dma_memcpy after NULL check of pch Currently pch pointer is already dereferenced before NULL check and thus we are getting below warning: warn: variable dereferenced before check 'pch' So initialize struct pl330_dmac *pl330 after NULL check of dma_pl330_chan *pch. Signed-off-by: Maninder Singh Reviewed-by: Vaneet Narang Signed-off-by: Vinod Koul --- Reading git-diff-tree failed