Re: [PATCH 2/2] mtd: onenand/samsung.c: fix build error
From: Brian Norris
Date: Fri Jun 17 2011 - 13:10:51 EST
Hi,
On Fri, Jun 17, 2011 at 1:11 AM, Axel Lin <axel.lin@xxxxxxxxx> wrote:
> - err = mtd_device_parse_register(&info->mtd, NULL, 0,
> + err = mtd_device_parse_register(onenand->mtd, NULL, 0,
> pdata ? pdata->parts : NULL,
> pdata ? pdata->nr_parts : 0);
Wouldn't it be just the same (and shorter) to use "mtd" instead of
onenand->mtd? Like:
err = mtd_device_parse_register(mtd, NULL, 0,
pdata ? pdata->parts : NULL,
pdata ? pdata->nr_parts : 0);
Brian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/