[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <063D6719AE5E284EB5DD2968C1650D6DD0025C9A@AcuExch.aculab.com>
Date: Mon, 19 Jun 2017 11:57:51 +0000
From: David Laight <David.Laight@...LAB.COM>
To: 'Antoine Tenart' <antoine.tenart@...e-electrons.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"jason@...edaemon.net" <jason@...edaemon.net>,
"andrew@...n.ch" <andrew@...n.ch>,
"gregory.clement@...e-electrons.com"
<gregory.clement@...e-electrons.com>,
"sebastian.hesselbarth@...il.com" <sebastian.hesselbarth@...il.com>,
"f.fainelli@...il.com" <f.fainelli@...il.com>
CC: "thomas.petazzoni@...e-electrons.com"
<thomas.petazzoni@...e-electrons.com>,
"nadavh@...vell.com" <nadavh@...vell.com>,
"mw@...ihalf.com" <mw@...ihalf.com>,
"linux@...linux.org.uk" <linux@...linux.org.uk>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: RE: [PATCH v4 03/11] net: mvmdio: use GENMASK for masks
From: Antoine Tenart
> Sent: 14 June 2017 16:49
> Cosmetic patch to use the GENMASK helper for masks.
...
> - ret = val & 0xFFFF;
> + ret = val & GENMASK(15, 0);
My 2c: It isn't at all clear to me that changes like this in anyway
improve the code readability.
In some sense the '15' should be a named constant - but that just makes
it even less obvious what is going on.
David
Powered by blists - more mailing lists