Return-path: Received: from mail-ob0-f179.google.com ([209.85.214.179]:55912 "EHLO mail-ob0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932994AbaJ2QQT (ORCPT ); Wed, 29 Oct 2014 12:16:19 -0400 MIME-Version: 1.0 In-Reply-To: <20141029160827.GD5290@mwanda> References: <20141029160827.GD5290@mwanda> Date: Wed, 29 Oct 2014 18:16:18 +0200 Message-ID: (sfid-20141029_171643_629095_6DAFF65B) Subject: Re: [patch] iwlwifi: cleanup a mask shift in iwlagn_bt_traffic_is_sco() From: Emmanuel Grumbach To: Dan Carpenter Cc: Johannes Berg , Emmanuel Grumbach , Intel Linux Wireless , "John W. Linville" , Paul Gortmaker , Larry Finger , linux-wireless , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , kernel-janitors@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, Oct 29, 2014 at 6:08 PM, Dan Carpenter wrote: > The shift operation is higher precedence so the code is wrong and it > sets of a static checker warning. But it doesn't affect real life > because BT_UART_MSG_FRAME3SCOESCO_POS is zero so the shift is a no-op. > > I have re-written it in normal style and with parenthesis as a cleanup > and to silence the static checker warning. > > Signed-off-by: Dan Carpenter > In my tree already - I got it from Joe. https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/iwlwifi-next.git/commit/?id=50f6635afe565a0e1c5ab78f040294fe1dc41de0