Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5031132yba; Mon, 13 May 2019 04:17:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxF7LpDQ+oEXkmL0xHILTW7QT6thEs+oalMR2sX6SfckrtUM7w+b/zfVD8jfRwdLELe/rMR X-Received: by 2002:a17:902:f24:: with SMTP id 33mr29603520ply.33.1557746269145; Mon, 13 May 2019 04:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557746269; cv=none; d=google.com; s=arc-20160816; b=xgcnOMUgdFGRWfQ5g0N++Gh/SmNYXMCEcbVw8J5zwZ59AAjbNMcNPEpmyvsISfuB35 hvyV8PUm89XBKIgpMRoojMPGk3/M+hYLAGrgtN67u5Mz2+AKM8E/h4H3kt3JrO9/yjJ5 xfedN+yQVFqRG455ZgpLeDmuE/3R5z3FLZPe/K0ima9LTt60JOEzd1iGLSVQh2MDXFmp z+8wGcoD2d5yT7lNLQnFvvKanx6l/2twnykyMCy1JMibkrVvnenZWW/9QQctBXQwHuik pGLQ8EtVHCkYr4mCQk+4l2HskkKMaDLzWlIA90ARsGhD1DFRL90REyCOGgk4HwK8S1rO M1Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=ARQrJZnpLUZOwS0c7g3B+LWtnsG1cuhJUzNdiZrrFyw=; b=YCCEkY5pHdsgg+OoLe9PfauukYERUqWQE2lQh7fXNaAPxf6w00muhsJQtNbW/q5Nqf nttGMfE64Nbpwoj+zAKFC6mbrC15JSAdKZpj4s7QpryoXTegDzFmQOnZo3mMX/0BTfgQ ZRz4mRn1IhOsgJBc3djn0W+g2uQT7CdrnEospi8GRqS5hosZLAQ82z02u0xTsHgRXzsu 5nvmQtSXsQzP2UNp+v+ahya84pf1IgE6qTy7A9HOut+YjfqvNTAk1yiu5dZZpjCUo57b 127h8l/xo6T+DVpfQA3uyVXN8fw6MMVprvixw3kVkK5dDLjapUnM2N8QbDAcdM7Iamol 8hzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MA6FmjkS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t61si17889850plb.309.2019.05.13.04.17.33; Mon, 13 May 2019 04:17:49 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=MA6FmjkS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728217AbfEMK1N (ORCPT + 99 others); Mon, 13 May 2019 06:27:13 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:43597 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727132AbfEMK1M (ORCPT ); Mon, 13 May 2019 06:27:12 -0400 Received: by mail-pl1-f193.google.com with SMTP id n8so6255135plp.10 for ; Mon, 13 May 2019 03:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ARQrJZnpLUZOwS0c7g3B+LWtnsG1cuhJUzNdiZrrFyw=; b=MA6FmjkS5gCuz+B2eZ3FX6z9bHPZYnMcXmMNq84bxfv6udH7+VR+VX4WY22R8BLUO/ Jjaj2A2LwxmEaGJUov4L6LTPORfd2Y6kZ/iZrrGEvem0lISOHF/RRHhYC86Z9uQFjTQi 3Fx7GrM6HDkwTX0+7HD80kkSvCbd6685x8sCliLmRqqOpqE19zBNku5Ce9exm9pkA7IN pbssxTOVJR3CTemI3/7aSpGZ3/kXCdUBXls5sO7OoSRJOdB37OZR/kPv5COk+xFg4ZR7 i2WK9Hj/2509dsNoPiLclOBEqhiczI35OnCB9DKS3BS9fdZSoMK5pxWEmGv94yOR58/6 Gl0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ARQrJZnpLUZOwS0c7g3B+LWtnsG1cuhJUzNdiZrrFyw=; b=OkH7fCiMherawT/Ve83/YONrBJoZ+3ukNB1bptSkt1k4VC09u9WxaFdRDxzSuKpbM5 72cH1dDNfZAHMmE+nbSUHNS7/SiCM10B7BlZD9KvEkitbHVXjgoRV/pk38GpQQOXueJ+ 9Rz8nFckt9Pgi2566aejpMfDpSp+ngckzKhIMacnQ7iEBPqn6GNDftTvUs/qW4tcSZRM FCx7VbQ/ZejV5lGSvia0b8PySaWLDhKtF9mir5NMCYYSNhYHUXFdElzueZj3TvuEWw1Y aqjL8OrYGUmf3csRqmRwHy0/jf9LmANbSItROXpMXXCOxg4hyD9Yvnb5nmQ8c0OJ82wp 1NzQ== X-Gm-Message-State: APjAAAWM7NCkCY5jxAQfvmurGENZOqjHGiROrgRsi1qspCv8fgNAr9OI 1iCDwGhqRvquqHgiqU1E2Owwn8+xCAU= X-Received: by 2002:a17:902:5ac9:: with SMTP id g9mr29464138plm.134.1557743231437; Mon, 13 May 2019 03:27:11 -0700 (PDT) Received: from bnva-HP-Pavilion-g6-Notebook-PC.domain.name ([117.248.72.152]) by smtp.gmail.com with ESMTPSA id r124sm11773487pgr.91.2019.05.13.03.27.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 03:27:10 -0700 (PDT) From: Vandana BN To: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, lukas.bulwahn@gmail.com Cc: skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, Vandana BN Subject: [PATCH v3 4/8] Staging: kpc2000: kpc_dma: Resolve code indent and trailing statements on next line errors reported by checkpatch. Date: Mon, 13 May 2019 15:56:18 +0530 Message-Id: <20190513102622.22398-4-bnvandana@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190513102622.22398-1-bnvandana@gmail.com> References: <20190510193833.1051-1-bnvandana@gmail.com> <20190513102622.22398-1-bnvandana@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes code indentaion error reported by checkpath ERROR: switch and case should be at the same indent ERROR: trailing statements should be on next line --- v2 - split changes to multiple patches v3 - edit commit message --- Signed-off-by: Vandana BN --- drivers/staging/kpc2000/kpc_dma/fileops.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/staging/kpc2000/kpc_dma/fileops.c b/drivers/staging/kpc2000/kpc_dma/fileops.c index 8dd948ef455f..c09147aaa4ef 100644 --- a/drivers/staging/kpc2000/kpc_dma/fileops.c +++ b/drivers/staging/kpc2000/kpc_dma/fileops.c @@ -395,10 +395,14 @@ long kpc_dma_ioctl(struct file *filp, unsigned int ioctl_num, unsigned long ioc dev_dbg(&priv->ldev->pldev->dev, "kpc_dma_ioctl(filp = [%p], ioctl_num = 0x%x, ioctl_param = 0x%lx) priv = [%p], ldev = [%p]\n", filp, ioctl_num, ioctl_param, priv, priv->ldev); switch (ioctl_num) { - case KND_IOCTL_SET_CARD_ADDR: priv->card_addr = ioctl_param; return priv->card_addr; - case KND_IOCTL_SET_USER_CTL: priv->user_ctl = ioctl_param; return priv->user_ctl; - case KND_IOCTL_SET_USER_CTL_LAST: priv->user_ctl_last = ioctl_param; return priv->user_ctl_last; - case KND_IOCTL_GET_USER_STS: return priv->user_sts; + case KND_IOCTL_SET_CARD_ADDR: + priv->card_addr = ioctl_param; return priv->card_addr; + case KND_IOCTL_SET_USER_CTL: + priv->user_ctl = ioctl_param; return priv->user_ctl; + case KND_IOCTL_SET_USER_CTL_LAST: + priv->user_ctl_last = ioctl_param; return priv->user_ctl_last; + case KND_IOCTL_GET_USER_STS: + return priv->user_sts; } return -ENOTTY; -- 2.17.1