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

Artem Bityutskiy
2011-12-27T09:35:29Z

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

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!

--
Best Regards,
Artem Bityutskiy

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