From: David Miller Date: Wed, 08 Feb 2017 18:27:24 +0000 Subject: Re: [patch net-next] net: dsa: bcm_sf2: cleanup bcm_sf2_cfp_rule_get() a little Message-Id: <20170208.132724.942207581380658378.davem@davemloft.net> List-Id: References: <20170207131527.GB31552@mwanda> In-Reply-To: <20170207131527.GB31552@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: dan.carpenter@oracle.com Cc: andrew@lunn.ch, f.fainelli@gmail.com, vivien.didelot@savoirfairelinux.com, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org From: Dan Carpenter Date: Tue, 7 Feb 2017 16:15:27 +0300 > This patch doesn't affect how the code works. > > My static checker complains that the mask and shift doesn't make sense > because 0xffffff << 16 goes beyond the end of 32 bits. It should be > 0xffff instead but the existing code won't cause runtime bugs. > > Also the casting here is not needed and not consistent with the rest of > the code. > > Signed-off-by: Dan Carpenter Applied, thanks Dan.