On Fri, Aug 24, 2012 at 12:06 PM, Artem Bityutskiy <dedekind1 at gmail.com> wrote: > So you may also just add > > if (!mtd_id) > return 0 > > at the beginning? yes. Your code is better then mine. Huang Shijie