Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp708810ybv; Thu, 13 Feb 2020 08:07:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxjFMM/fNiXcAMpTlBlfbfTPVW8NKZcWQusC+ZWA+oz+e1Pt0Nxw4GivSNtf8ZWShXP9i9/ X-Received: by 2002:aca:f1d4:: with SMTP id p203mr3365848oih.116.1581610061151; Thu, 13 Feb 2020 08:07:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581610061; cv=none; d=google.com; s=arc-20160816; b=b/Q0w8J4YCJjf198EWvsFaU9++dUlXHTBsHNUEhdAxmRIDf5zmJE7Yt19pLqticqBx 6svjjibFKWk7oYTyy6lYZK1CSoPXF5pbkPX+9Wc4P5igVjpAl0hCUvaHEt4/OIo/dduy Nggey0rFpBZIqBhYBmRmlcPX1Kw6n8ihfGo97Ugu17jOuJ40c/IPZlBR4ma24yFFe9Z8 OJWOb3naeNFxVwEgLhaDsJxm1QxpGmDtjJ5S9KUap82H+/a3ol8lUn/ehIF2FgvtdjM8 unxBzvqcgoXyy0irGF6uvXdMJMGIYmEOygj7feVb3tMBlWeBhjZ4SzRNFBqb18CxHkCC VOLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lcKvuhvyw+RzuSB9eWbQGVOIWJuk2uzQ1Cxd/KMwpbQ=; b=whihX59jsjGelR9zcxcXMDcol163EQJO9qwyaHAFi85Oyf9wzRoQHODXgKGCNwyBDl WUmGlh2sfo1gjA8Kl2OVH3J5jPr6xdIMl06+/qb8rbwVoegdWPzD2IHcaVFOXlWWtELm aL3s872IqTIn7RHAmuLRi5n4VF0kg5DtYlkXx/ajC7MDE/jInj2SeRtT2eC2Sa6cQg9D G6imiP0RFmQi0wX2G6n/g0QIBpsLNn6LqOHjnYRKKXPuvldHplP2q0guRT4SHx1sNq8k zEQUz6hDFCtDDVJjyVq8xUCG6BIsIIdIRynt+lh+KpUXJIspwa+nL0FWJh2FdQZVA/04 rWDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xz7FKxMb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si1365017otf.36.2020.02.13.08.07.24; Thu, 13 Feb 2020 08:07:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xz7FKxMb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388176AbgBMQFK (ORCPT + 99 others); Thu, 13 Feb 2020 11:05:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:35848 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728526AbgBMPXx (ORCPT ); Thu, 13 Feb 2020 10:23:53 -0500 Received: from localhost (unknown [104.132.1.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3971324689; Thu, 13 Feb 2020 15:23:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581607432; bh=m5h+TfoZBMq8+QQTbTonTmHL2eCkmjNWI9LgLwgQetQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xz7FKxMbnuMB/jIVyQMG9AOmWVtaWV8zhKHDa6BnvKyX3zVZnUg9o2mzvy56uiGWM DLjce2LoP9ZeTOqKE0/8ZlJbYJj6A7FN4iyl6+UFdvXjI8lrlaUhBckTZ9pxpMP3c+ JH9Xubexu80q2JPtjLjnIN5XZ5wT1ZjDwdTwELHI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , "David S. Miller" Subject: [PATCH 4.9 066/116] net: tulip: Adjust indentation in {dmfe, uli526x}_init_module Date: Thu, 13 Feb 2020 07:20:10 -0800 Message-Id: <20200213151908.551367898@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200213151842.259660170@linuxfoundation.org> References: <20200213151842.259660170@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor commit fe06bf3d83ef0d92f35a24e03297172e92ce9ce3 upstream. Clang warns: ../drivers/net/ethernet/dec/tulip/uli526x.c:1812:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] switch (mode) { ^ ../drivers/net/ethernet/dec/tulip/uli526x.c:1809:2: note: previous statement is here if (cr6set) ^ 1 warning generated. ../drivers/net/ethernet/dec/tulip/dmfe.c:2217:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] switch(mode) { ^ ../drivers/net/ethernet/dec/tulip/dmfe.c:2214:2: note: previous statement is here if (cr6set) ^ 1 warning generated. This warning occurs because there is a space before the tab on these lines. Remove them so that the indentation is consistent with the Linux kernel coding style and clang no longer warns. While we are here, adjust the default block in dmfe_init_module to have a proper break between the label and assignment and add a space between the switch and opening parentheses to avoid a checkpatch warning. Fixes: e1c3e5014040 ("[PATCH] initialisation cleanup for ULI526x-net-driver") Link: https://github.com/ClangBuiltLinux/linux/issues/795 Signed-off-by: Nathan Chancellor Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/dec/tulip/dmfe.c | 7 ++++--- drivers/net/ethernet/dec/tulip/uli526x.c | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) --- a/drivers/net/ethernet/dec/tulip/dmfe.c +++ b/drivers/net/ethernet/dec/tulip/dmfe.c @@ -2225,15 +2225,16 @@ static int __init dmfe_init_module(void) if (cr6set) dmfe_cr6_user_set = cr6set; - switch(mode) { - case DMFE_10MHF: + switch (mode) { + case DMFE_10MHF: case DMFE_100MHF: case DMFE_10MFD: case DMFE_100MFD: case DMFE_1M_HPNA: dmfe_media_mode = mode; break; - default:dmfe_media_mode = DMFE_AUTO; + default: + dmfe_media_mode = DMFE_AUTO; break; } --- a/drivers/net/ethernet/dec/tulip/uli526x.c +++ b/drivers/net/ethernet/dec/tulip/uli526x.c @@ -1813,8 +1813,8 @@ static int __init uli526x_init_module(vo if (cr6set) uli526x_cr6_user_set = cr6set; - switch (mode) { - case ULI526X_10MHF: + switch (mode) { + case ULI526X_10MHF: case ULI526X_100MHF: case ULI526X_10MFD: case ULI526X_100MFD: