Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9929694imu; Sun, 30 Dec 2018 08:31:09 -0800 (PST) X-Google-Smtp-Source: AFSGD/V8+62WzuY/8GFQ/obKSDc8/7yuB4j7nF4GsY4+REvNU2WCTnm9a6cOPuFxYVOZ0Nv5EcqT X-Received: by 2002:aa7:85d7:: with SMTP id z23mr36623428pfn.205.1546187469421; Sun, 30 Dec 2018 08:31:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546187469; cv=none; d=google.com; s=arc-20160816; b=gRqlyKSCbT9h6SKYYuLLUZEUFeulKsB/P5LzBn9fgPQZlR/rO7dbSuXlhjLEASHF6D 9u5Ce38ZGYLIDSHe24S8Yh6kl31kg0HKSx2QNt+/sqktyWrnLtI2qy2nAvVxQ0Xax7iB Be+8bsUT6zLagYf4c4KIod3F5v2dVABfB9aAa7wEfRxtxmd9NrsEC1QcoUDg+OjvLwfz kbwWuAV/ghwK21FTSf6AZ/R+8i7vuky/nJmHNcPCS+nR23vhlljYTG+szulvtAkeYSDk Iu3xiVA0npmvsOs5fNHKac5x9ty7+amSJ/PWUEHyWFBKPj1UVZr1RJyIqkLa4839U0aV oQ5g== 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; bh=CM+yRGsIREd6PdTiDmRnFis81iFbjTEXwIljMedhJ+k=; b=b2KTkT+a8/OQeGJLqAh5yFctY7IBLhI3eBxbQ6S+OQlIm+arEZFGcnpR687vnBBIOb mk4pwSK3CMO6TyPZQV/0nRQirDhOSOQN0ZkDZnTR91Te38NXPXYnQQ4W5VsNPo5fwblO H+lOBoaqyXYneQx7cDfHHQzqv0kaB0qHhO1PRkaZvtYdrc6VHGZmM3ZSX1gop2bkKPwk rqIovptWqKX6wWED5vhIzPVEj99QjP/eYED1ID8Lp515+Xh3q5qLDdgy3JZYtBx1vue1 tlebGgMBNY4vuP65Duv/vk/YJxq2okis41d38kihhDzsGxksnyIFMAhNElPlFP19OVif PSWg== ARC-Authentication-Results: i=1; mx.google.com; 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 i2si40381705pfi.125.2018.12.30.08.30.53; Sun, 30 Dec 2018 08:31:09 -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; 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 S1726460AbeL3QaA (ORCPT + 99 others); Sun, 30 Dec 2018 11:30:00 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:52542 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725954AbeL3Q37 (ORCPT ); Sun, 30 Dec 2018 11:29:59 -0500 X-IronPort-AV: E=Sophos;i="5.56,417,1539640800"; d="scan'208";a="290435978" Received: from palace.rsr.lip6.fr (HELO palace.lip6.fr) ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 30 Dec 2018 17:29:57 +0100 From: Julia Lawall To: Felipe Balbi Cc: kernel-janitors@vger.kernel.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/8] usb: gadget: udc: reduce indentation Date: Sun, 30 Dec 2018 16:53:08 +0100 Message-Id: <1546185195-25676-2-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1546185195-25676-1-git-send-email-Julia.Lawall@lip6.fr> References: <1546185195-25676-1-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Delete tab aligning a statement with the right hand side of a preceding assignment rather than the left hand side. Found with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/usb/gadget/udc/snps_udc_core.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/usb/gadget/udc/snps_udc_core.c b/drivers/usb/gadget/udc/snps_udc_core.c index d4da47f4f6f4..3fcded31405a 100644 --- a/drivers/usb/gadget/udc/snps_udc_core.c +++ b/drivers/usb/gadget/udc/snps_udc_core.c @@ -947,15 +947,14 @@ static int prep_dma(struct udc_ep *ep, struct udc_request *req, gfp_t gfp) UDC_DMA_STP_STS_BS_HOST_READY, UDC_DMA_STP_STS_BS); - - /* clear NAK by writing CNAK */ - if (ep->naking) { - tmp = readl(&ep->regs->ctl); - tmp |= AMD_BIT(UDC_EPCTL_CNAK); - writel(tmp, &ep->regs->ctl); - ep->naking = 0; - UDC_QUEUE_CNAK(ep, ep->num); - } + /* clear NAK by writing CNAK */ + if (ep->naking) { + tmp = readl(&ep->regs->ctl); + tmp |= AMD_BIT(UDC_EPCTL_CNAK); + writel(tmp, &ep->regs->ctl); + ep->naking = 0; + UDC_QUEUE_CNAK(ep, ep->num); + } }