Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp395419pxj; Thu, 20 May 2021 11:49:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9MYZou60nhxIEWS8VZbdH6NP/xCj0bh9u8iweETSvOwGGPMgBuYAK3/pLrQoZs54Uec3c X-Received: by 2002:a17:906:ccde:: with SMTP id ot30mr6258869ejb.353.1621536555155; Thu, 20 May 2021 11:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621536555; cv=none; d=google.com; s=arc-20160816; b=aup+PRX/iwFFFis5TBrx45Wfd14DVq5wRVZdwuBqFe9Fq69cnHA/jHxxTIwgp9qEeb QHoj98//G9Jeur4t8UmMS+L5ikA8iUvdCVkgiqJB48B+QAmrHRZ9Y4X33PtpQX3gJcFn NSBionJEgVf59SQTnDPu/1LJPzu0VnfVnBd3GBpuyQi4uf6CKQGPbtnEbJZe6j1DOAAx GjFO46DHYlGHB3LsS2kzGZc+z+B7hq3LZCrLEl6jZ8uLezlaRqFX6bJXsSYYBEO4ocAa wSjzNiZ1ppQfb7hhYcAwc7XXAlpQuXRwFm+fTK8pdE7H+/bTFXEv3+JIox18pt0jPtDl xh2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8oeCbyb1cPeK0jWBOM10ccTp74es/gAColdRECiD2hM=; b=HoNtP3F5gW8PwbIkuV5bixm02OcfBNzkcZqa5niRmRec1YCA66+eVVo9oDvv/94UyE 6XFu33cpLAAenSOfksyJM3qZsKSswCUoayzUFjHUU+Mx8a0qU5c6M+WhgaxBZwgzYebv NL1CLm3kzQa1rxytqpIxDd7wwZUJWwKBBYuaBo+IZZ63djV/c5TjTUyhrR/hxtRd5meb MDh7vcNJh4Hf9dQgM1uNlxl75f6CoDtu4NttvTMuVyVAcu39sev7DYhcU2TjktJfj/ml trd6tcYAhlHfeTzS1diWIbV8rKRckfDTm8NvlAA5MVIOJHWpsBVS+krOL39QCj/g61UH H8vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ia6eLYpb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a24si2810910edu.170.2021.05.20.11.48.51; Thu, 20 May 2021 11:49:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ia6eLYpb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236316AbhETKXM (ORCPT + 99 others); Thu, 20 May 2021 06:23:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:47008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235714AbhETKMH (ORCPT ); Thu, 20 May 2021 06:12:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D76C36195E; Thu, 20 May 2021 09:43:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503827; bh=DsBOTJL5ir0zrcnF3XcMFfXwg59YIrtgqteA1mt4Cyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ia6eLYpbf/3I2CHQ547ooCSDRkmjKTQWFgcL0hCm3cN6kGz4y3fHAzkdwPiEvpZMa MCKGBjTM0j+RgTwQp/lxHsqJf28h4n43G7hbfzxbVM7ASoV4DhyLl4xRClR1rzv5MZ 2BeXpGBDgVwcIGbBsENujunq+JHbA2o6F3QRKeE0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann Subject: [PATCH 4.19 396/425] usb: sl811-hcd: improve misleading indentation Date: Thu, 20 May 2021 11:22:45 +0200 Message-Id: <20210520092144.416966837@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann commit 8460f6003a1d2633737b89c4f69d6f4c0c7c65a3 upstream. gcc-11 now warns about a confusingly indented code block: drivers/usb/host/sl811-hcd.c: In function ‘sl811h_hub_control’: drivers/usb/host/sl811-hcd.c:1291:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 1291 | if (*(u16*)(buf+2)) /* only if wPortChange is interesting */ | ^~ drivers/usb/host/sl811-hcd.c:1295:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1295 | break; Rewrite this to use a single if() block with the __is_defined() macro. Signed-off-by: Arnd Bergmann Link: https://lore.kernel.org/r/20210322164244.827589-1-arnd@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/sl811-hcd.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c @@ -1287,11 +1287,10 @@ sl811h_hub_control( goto error; put_unaligned_le32(sl811->port1, buf); -#ifndef VERBOSE - if (*(u16*)(buf+2)) /* only if wPortChange is interesting */ -#endif - dev_dbg(hcd->self.controller, "GetPortStatus %08x\n", - sl811->port1); + if (__is_defined(VERBOSE) || + *(u16*)(buf+2)) /* only if wPortChange is interesting */ + dev_dbg(hcd->self.controller, "GetPortStatus %08x\n", + sl811->port1); break; case SetPortFeature: if (wIndex != 1 || wLength != 0)