Re: [PATCH v1 2/7] resource: Group resource_overlaps() with other inline helpers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux