[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20141129.211225.2031104016189256005.davem@davemloft.net>
Date: Sat, 29 Nov 2014 21:12:25 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: chenhc@...ote.com
Cc: peppe.cavallaro@...com, vbridgers2013@...il.com,
netdev@...r.kernel.org
Subject: Re: [PATCH V2] stmmac: platform: Move plat_dat checking earlier
From: Huacai Chen <chenhc@...ote.com>
Date: Thu, 27 Nov 2014 21:05:34 +0800
> 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 <chenhc@...ote.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists