Re: [PATCH 03/28] mtd: introduce mtd_erase interface

Mike Frysinger
2011-12-27T09:50:42Z

On Tue, Dec 27, 2011 at 04:47, Artem Bityutskiy <dedekind1@gmail.com> wrote:
> On Tue, 2011-12-27 at 11:37 +0200, Artem Bityutskiy wrote:
>> On Tue, 2011-12-27 at 04:22 -0500, Mike Frysinger wrote:
>> > On Fri, Dec 23, 2011 at 13:10, Artem Bityutskiy wrote:
>> > >  static inline struct mtd_info *dev_to_mtd(struct device *dev)
>> > >  {
>> > >        return dev ? dev_get_drvdata(dev) : NULL;
>> >
>> > on an unrelated note, this NULL check is unnecessary.  the core func
>> > already takes care of checking the pointer.
>>
>> Sure, I can cook a separate patch for this, thanks!
>
> Which will probably kill entire 'dev_to_mtd()', but not for
> this merge window.

sounds good. my mobo died, so it's hard for me to post patches atm :/.
-mike