[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140423152717.7100f604@alan.etchedpixels.co.uk>
Date: Wed, 23 Apr 2014 15:27:17 +0100
From: One Thousand Gnomes <gnomes@...rguk.ukuu.org.uk>
To: "Karicheri, Muralidharan" <m-karicheri2@...com>
Cc: "devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-serial@...r.kernel.org" <linux-serial@...r.kernel.org>,
"Balbi, Felipe" <balbi@...com>, Rob Herring <robh+dt@...nel.org>,
"Mark Rutland" <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>,
Randy Dunlap <rdunlap@...radead.org>,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
Jiri Slaby <jslaby@...e.cz>
Subject: Re: [PATCH] serial: uart: add hw flow control support configuration
> >- if (up->capabilities & UART_CAP_AFE && port->fifosize >= 32) {
> >+ if ((up->capabilities & UART_CAP_AFE && (port->fifosize >= 32)) ||
> >+ port->flags & UPF_HARD_FLOW) {
>
> [Alan] Surely you want brackets on the port->flags & UPF_HARD_FLOW ??
>
> The C precedence table shows following order:=
> -> & ||
>
> So flags will be accessed first and then AND-ed with UPF_HARD_FLOW and
> result will be OR-ed with left side expression value. So no need for bracket IMO.
Yep... agreed.
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists