[PATCH 03/28] mtd: introduce mtd_erase interface

Mike Frysinger vapier.adi at gmail.com
Tue Dec 27 04:50:18 EST 2011


On Tue, Dec 27, 2011 at 04:47, Artem Bityutskiy <dedekind1 at 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



More information about the linux-mtd mailing list