From: Huacai Chen Date: Thu, 27 Nov 2014 13:05:34 +0000 (+0800) Subject: stmmac: platform: Move plat_dat checking earlier X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~45^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28603d13997e2ef47f18589cc9a44553aad49c86;p=pandora-kernel.git stmmac: platform: Move plat_dat checking earlier Original code only check/alloc plat_dat for the CONFIG_OF case, this patch check/alloc it earlier and unconditionally to avoid kernel build warnings: drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:275 stmmac_pltfr_probe() warn: variable dereferenced before check 'plat_dat' V2: Fix coding style. Signed-off-by: Huacai Chen Signed-off-by: David S. Miller --- Reading git-diff-tree failed