From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754008AbdIHDEc (ORCPT ); Thu, 7 Sep 2017 23:04:32 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:41636 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752110AbdIHDEb (ORCPT ); Thu, 7 Sep 2017 23:04:31 -0400 Date: Thu, 07 Sep 2017 20:04:30 -0700 (PDT) Message-Id: <20170907.200430.192546025684691135.davem@davemloft.net> To: arnd@arndb.de Cc: isdn@linux-pingi.de, joe@perches.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] isdn: isdnloop: fix logic error in isdnloop_sendbuf From: David Miller In-Reply-To: <20170906133928.3152020-1-arnd@arndb.de> References: <20170906133928.3152020-1-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 07 Sep 2017 20:04:31 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Wed, 6 Sep 2017 15:38:58 +0200 > gcc-7 found an ancient bug in the loop driver, leading to a condition that > is always false, meaning we ignore the contents of 'card->flags' here: > > drivers/isdn/isdnloop/isdnloop.c:412:37: error: ?: using integer constants in boolean context, the expression will always evaluate to 'true' [-Werror=int-in-bool-context] > > This changes the braces in the expression to ensure we actually > compare the flag bits, rather than comparing a constant. As Joe Perches > pointed out, an earlier patch of mine incorrectly assumed this was a > false-positive warning. > > Cc: Joe Perches > Link: https://patchwork.kernel.org/patch/9840289/ > Signed-off-by: Arnd Bergmann Applied, thank you.