Messages in this thread | | | Date | Fri, 17 Jun 2011 10:10:42 -0700 | Subject | Re: [PATCH 2/2] mtd: onenand/samsung.c: fix build error | From | Brian Norris <> |
| |
Hi,
On Fri, Jun 17, 2011 at 1:11 AM, Axel Lin <axel.lin@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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |