From: Peter Huewe Date: Tue, 19 Feb 2013 12:07:28 +0000 (+0100) Subject: staging/sep: Check pointers before dereferencing (fix smatch warning) X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~790 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb1bd49c50880df667905b4cfb472064f62c05d1;p=pandora-kernel.git staging/sep: Check pointers before dereferencing (fix smatch warning) smatch complains about two dereferenced before check issues: sep_main.c:2898 sep_free_dma_tables_and_dcb() warn: variable dereferenced before check 'dma_ctx' (see line 2885) sep_main.c:2898 sep_free_dma_tables_and_dcb() warn: variable dereferenced before check '*dma_ctx' (see line 2885) -> Move the checks to the top, but keep the semantics. Signed-off-by: Peter Huewe Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed