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

Artem Bityutskiy
2011-12-27T09:46:06Z

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

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.

--
Best Regards,
Artem Bityutskiy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]