[PATCH 1/2] mtd: replace the hard code with the proper macro

Brian Norris computersforpeace at gmail.com
Tue Jul 10 21:43:18 EDT 2012


On Tue, Jul 3, 2012 at 1:44 AM, Huang Shijie <b32955 at freescale.com> wrote:
> Use the MTD_OPS_PLACE_OOB to replace the hard code "0".
> Make the code more readable.

I think I intentionally used 0 instead of an explicit mode, since the
mode was mostly for when oobbuf != NULL; i.e., MTD_OPS_PLACE_OOB vs.
MTD_OPS_AUTO_OOB was a don't care in this case. But now that you
mention it, this is probably more readable.

> Signed-off-by: Huang Shijie <b32955 at freescale.com>

Acked-by: Brian Norris <computersforpeace at gmail.com>



More information about the linux-mtd mailing list