[PATCH] drivers: mtd: mtdcore: Fix build warning when CONFIG_MTD_CHAR is not defined

Artem Bityutskiy artem.bityutskiy at linux.intel.com
Sat Jan 14 10:18:50 EST 2012


On Thu, 2012-01-12 at 01:25 -0200, Fabio Estevam wrote:
> Fix the following build warning:
> 
> drivers/mtd/mtdcore.c: In function ‘mtd_release’:
> drivers/mtd/mtdcore.c:110: warning: unused variable ‘mtd’
> 
> This happens when neither CONFIG_MTD_CHAR nor CONFIG_MTD_CHAR_MODULE are defined.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>

Pushed to l2-mtd.git, thanks!

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120114/8ac06dd3/attachment.sig>


More information about the linux-mtd mailing list