[PATCH 2/2] mtd: onenand/samsung.c: fix build error

Brian Norris computersforpeace at gmail.com
Fri Jun 17 13:10:42 EDT 2011


Hi,

On Fri, Jun 17, 2011 at 1:11 AM, Axel Lin <axel.lin at gmail.com> 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



More information about the linux-mtd mailing list