On Fri, Aug 14, 2020 at 05:18:33PM +0200, Rafael J. Wysocki wrote: > On Thu, Aug 13, 2020 at 7:57 PM Andy Shevchenko > <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > > > > For better maintenance group resource_overlaps() with other inline helpers. ... > > +/* True if any part of r1 overlaps r2 */ > > +static inline bool resource_overlaps(struct resource *r1, struct resource *r2) > > +{ > > + return (r1->start <= r2->end && r1->end >= r2->start); > > The redundant parens can be dropped while at it. Okay, will do! > > +} -- With Best Regards, Andy Shevchenko