From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932657AbcAKMr0 (ORCPT ); Mon, 11 Jan 2016 07:47:26 -0500 Received: from mga14.intel.com ([192.55.52.115]:59909 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758955AbcAKMrY (ORCPT ); Mon, 11 Jan 2016 07:47:24 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,552,1444719600"; d="scan'208";a="888137599" Message-ID: <1452516463.26146.20.camel@linux.intel.com> Subject: Re: [PATCH v4 13/13] tty: serial: 8250: Fix indentation warnings From: Andy Shevchenko To: Anton Wuerfel , Greg Kroah-Hartman Cc: Jiri Slaby , "James E.J. Bottomley" , Helge Deller , Peter Hurley , Heikki Krogerus , Qipeng Zha , Desmond Liu , Wang Long , Matt Redfearn , Paul Burton , Ralf Baechle , Krzysztof Kozlowski , Peter Hung , Soeren Grunewald , Adam Lee , "Maciej S. Szmigiero" , Mans Rullgard , linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linux-kernel@i4.cs.fau.de, phillip.raffeck@fau.de Date: Mon, 11 Jan 2016 14:47:43 +0200 In-Reply-To: <1452275039-18787-14-git-send-email-anton.wuerfel@fau.de> References: <1452275039-18787-1-git-send-email-anton.wuerfel@fau.de> <1452275039-18787-14-git-send-email-anton.wuerfel@fau.de> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.3-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2016-01-08 at 18:43 +0100, Anton Wuerfel wrote: > Checkpatch complains about incorrect indentation of switch/case > statements. > This patch fixes the corresponding warnings. Additionally some > indentation > is changed to match the correct format specified in the Linux Kernel > Coding Style. > > Signed-off-by: Anton Würfel > Signed-off-by: Phillip Raffeck > CC: linux-kernel@i4.cs.fau.de > --- >  drivers/tty/serial/8250/8250_pci.c  | 12 ++++++------ >  drivers/tty/serial/8250/8250_pnp.c  |  4 ++-- >  drivers/tty/serial/8250/8250_port.c |  6 +++--- >  3 files changed, 11 insertions(+), 11 deletions(-) > > diff --git a/drivers/tty/serial/8250/8250_pci.c > b/drivers/tty/serial/8250/8250_pci.c > index 09157fa..b0b47f9 100644 > --- a/drivers/tty/serial/8250/8250_pci.c > +++ b/drivers/tty/serial/8250/8250_pci.c > @@ -841,12 +841,12 @@ static int pci_netmos_init(struct pci_dev *dev) >   return 0; >   >   switch (dev->device) { /* FALLTHROUGH on all */ > - case PCI_DEVICE_ID_NETMOS_9904: > - case PCI_DEVICE_ID_NETMOS_9912: > - case PCI_DEVICE_ID_NETMOS_9922: > - case PCI_DEVICE_ID_NETMOS_9900: > - num_serial = pci_netmos_9900_numports(dev); > - break; > + case PCI_DEVICE_ID_NETMOS_9904: > + case PCI_DEVICE_ID_NETMOS_9912: > + case PCI_DEVICE_ID_NETMOS_9922: > + case PCI_DEVICE_ID_NETMOS_9900: > + num_serial = pci_netmos_9900_numports(dev); > + break; >   >   default: You forget to shift above line as well. >   if (num_serial == 0) { But before doing that I would suggest to refactor the warning message below in the code: copy it out of 'default:' to below condition and replace by 'break;' inside the switch-case. -- Andy Shevchenko Intel Finland Oy