Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp68664pxj; Thu, 20 May 2021 04:46:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU6jUAh9sP2bhjWodEmZc/CtUN+U0/It30MNL3RXXLXAAxXi2UdHOIzu4rb291Nmbaytq8 X-Received: by 2002:a17:906:4a06:: with SMTP id w6mr4352743eju.69.1621511192609; Thu, 20 May 2021 04:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621511192; cv=none; d=google.com; s=arc-20160816; b=JQyH+kfcc9Gi3c9ZcT+uKLD6nL+Qk590eoNNp2y9w6V8STZeIiWfN2flBBopG5A7wC 2Q4nmAHD3xVsqpR6E/m9vY13Ds5JnLAB8GXhVjkGrZfS2vtAiVCFg48cYg0QwMT/s+NL Zz3jVwr5Q/wrI9Rgjv9QwTaClaKqkqQTuh7ApDLcGDhBkZC59KFvW32YmepGJ0vIqK7Y LcL6P7s/6PQMy/vP3GqA6x6rKW53AFYMggaazUwx26moopzbjKLJUzA6GEZnlJuSDyzc XGvQqmzYi43u5na3kniSU0iTzLh/9ow22VHPESNGtw8uOnc013sqbWz4bcMwvWM10ORb CAcA== 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=tayOGHtiDKiPQeR5ML5UfhnROJUFxSWVUVmOYHOwyME=; b=VBIcwpHQT3WsVpyL2QdEKWyZLBGm4I4OyV8gb94z8o5fhUtsmM2ETSeVVjC4OhBpgL SFW4yGxRQRuRc4kxHO2gMbwwLX0AdV+ny3bbkv8SbYAzXraC9P93Y/yZrAgcisTzY1a8 VB43UWcP8gNF7yomZjbd1qUwUQWMairQa5/JbdIp/v3fwcHL109UewbGiO6CRk3RxhaU +AZKOBhvZYMBpD4e9EufyqiZEVVgxSm5tWO75pAXOqvfnn+r1BvUEesxg3lkGmh3CpdC HmYp3hfLC7uyJe+6ShZU3WFXpS7gTVbaQShE9XdSpTdavjYquZmESABr/+WgYYkdiwZR psHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xPObnuzx; 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 g19si2297205edu.311.2021.05.20.04.46.07; Thu, 20 May 2021 04:46:32 -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=xPObnuzx; 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 S234473AbhETLpW (ORCPT + 99 others); Thu, 20 May 2021 07:45:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:43054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241252AbhETLYD (ORCPT ); Thu, 20 May 2021 07:24:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B4B3661D8E; Thu, 20 May 2021 10:12:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505538; bh=uTaG+Di4XS1WYWv0Dz6/jBPs2AoiU/Wa29VweIUts/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xPObnuzxYcIspmr+1A79kmjnCP2rPk2paU+OhI2KR3DqifPrPTGZt1yHa66T03Q2E 6Rm2B0OvovERqChEZPGuNxwX9BDbDHScY8YVj2PZ6pytPM2rouaRUzjSfZu7o3PZOf NWxRV5x9oDYW0LrLyPcc9dpKWTS0gkz/2dDHiZxw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann Subject: [PATCH 4.4 179/190] usb: sl811-hcd: improve misleading indentation Date: Thu, 20 May 2021 11:24:03 +0200 Message-Id: <20210520092108.081016719@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092102.149300807@linuxfoundation.org> References: <20210520092102.149300807@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 @@ -1286,11 +1286,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)