Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3692233ybv; Mon, 10 Feb 2020 04:48:44 -0800 (PST) X-Google-Smtp-Source: APXvYqznXVscLzQwoYTznNcYplrzUDIulJ0wSWh2KbjEdIBtRBjfiVHtLWillJjE6uoyRhOXO8+y X-Received: by 2002:aca:d502:: with SMTP id m2mr676825oig.41.1581338924393; Mon, 10 Feb 2020 04:48:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581338924; cv=none; d=google.com; s=arc-20160816; b=JzvOW5EVJtyY+zk343XgYX6YfqrrF0fFaBCB1Sdcikhfcfl1O13POAjot4f/0N46Ud lMaRrqOk7a5ar6j8FmQ0uHCEHatkMXTsSyIESocCjFQmhn6TM1i8E6I3exmmG+EWa0nb oohLW4yK5NmYS3zwOagqWlTAx7sO5rBB7s5uwR8lxB5FiHuctQ3WBjLBd8BSTW7yH2KW 05XxDXI7MXLTIu19PINp/oF6QDWkmmtMRgQLnPMhMt3DMnSZDjT0oRpMIVcjZsNqwG/Q Q6Ae+4vpqJNbdxxSsvU9NO9pNtU/2aw/Ig/MCu0OheVB47iI3xVS0ZePv0av3P6DgDBf dtyQ== 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=DPOAdWev5bgXc7H6ofxm7+l0aeLVSbql3Lbl39LQGnI=; b=sR4xu8UNl5l8ch6z5dxnKPZnch7k6/Eidsq08gojeWSEEoKv4BBFamtxmWke5zOjIc 9mkNkQ4s74KdOkpfkMNNKds173UtFShupqwYTpRkvggGK5FsnTWB4NHODMBnuikLSjsk OWtRx0QCJteh16HDG0ftp06ynecEsU63qIpedRBYoGo4PvKJOZxrY666UMkypNoVho6U 8p5yurLLLHfhLpvGFgtJux6e7YgRdola479DE+TaxRQDkoWLF+ecJDFmDjAieqkRxTTS k0KIRcO/x2uIWqkOKRGyqKT0xcKjP9v7Va86NT3cc3BQOO4cQ1+c3Si372nzaXJBx9P8 mU5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uwZw11J7; 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 m26si147111otn.307.2020.02.10.04.48.32; Mon, 10 Feb 2020 04:48:44 -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=uwZw11J7; 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 S1730752AbgBJMrJ (ORCPT + 99 others); Mon, 10 Feb 2020 07:47:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:45432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730116AbgBJMl7 (ORCPT ); Mon, 10 Feb 2020 07:41:59 -0500 Received: from localhost (unknown [209.37.97.194]) (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 84D3C2051A; Mon, 10 Feb 2020 12:41:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581338518; bh=E+MTVgFWNIcvf+fhiuKRguXt/m4kjJSHKqQwsK/ytv4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uwZw11J75sRCiIQV1uUruKPPf5F3Fihb2RtrPuxxxd6EXdfDmfga4XqwkTPgAZ/e+ Shhah7CZxbRbbmVjU3wc9rHLS7j/vBzm/qOdHowiKKVD3KVkDgF5mN9PUmI8qIVClX 7rfwGQapxG66sDjOfXyS/9BmFDhdjddxNpNpSbWg= 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 5.5 293/367] net: tulip: Adjust indentation in {dmfe, uli526x}_init_module Date: Mon, 10 Feb 2020 04:33:26 -0800 Message-Id: <20200210122450.801336395@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210122423.695146547@linuxfoundation.org> References: <20200210122423.695146547@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 @@ -2214,15 +2214,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 @@ -1809,8 +1809,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: