From: Takashi Iwai Subject: Re: [PATCH] ALSA: hda/ca0132: Remove double parentheses Date: Mon, 20 Mar 2017 12:55:28 +0100 Message-ID: References: <20170315224123.175587-1-mka@chromium.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 5AF16266D9D for ; Mon, 20 Mar 2017 12:55:29 +0100 (CET) In-Reply-To: <20170315224123.175587-1-mka@chromium.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Matthias Kaehlcke Cc: alsa-devel@alsa-project.org, Grant Grundler , linux-kernel@vger.kernel.org, Julia Lawall , Sven Hahne List-Id: alsa-devel@alsa-project.org On Wed, 15 Mar 2017 23:41:23 +0100, Matthias Kaehlcke wrote: > > The extra pairs of parantheses are not needed and causes clang to > generate warnings like this: > > sound/pci/hda/patch_ca0132.c:1171:14: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] > if ((buffer == NULL)) > ~~~~~~~^~~~~~~ > sound/pci/hda/patch_ca0132.c:1171:14: note: remove extraneous parentheses around the comparison to silence this warning > if ((buffer == NULL)) > ~ ^ ~ > sound/pci/hda/patch_ca0132.c:1171:14: note: use '=' to turn this equality comparison into an assignment > if ((buffer == NULL)) > > Signed-off-by: Matthias Kaehlcke Applied, thanks. Takashi