Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp561419pxk; Wed, 2 Sep 2020 08:48:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzGMqi+oibMVOsfcCWffNYhzX8ELi0ESTMY4MzGyZazsBiSX5vP3699v7pkx5yhZdyi0aX X-Received: by 2002:a17:906:7f06:: with SMTP id d6mr573263ejr.553.1599061729164; Wed, 02 Sep 2020 08:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599061729; cv=none; d=google.com; s=arc-20160816; b=ijbmqAtOLWZgsV17YhB4YmB3/jEMWyhMD6IDjoA7ymO6IeziJsj91dwrEq73iFIjS2 jC0yPc41jZNSTLDCwMcw613mvjCk1E+yqDKByHSUfxRzbHWCkoJpjDg2+lUrLAOmnxUw lGngNSd3OYr3vktBFkW1xeh/1qov6QIiJ7njxQeMF5Trt33T4gMDVJqmouScK5Fe517Z Xpu26kNFp+nZD4C97XIXk8eCM4WiDpHpfWAenKLTIeidtTsSOBY01cXllmpXEY+2KAqG U7kGfLcM+c6W9CalswxbyZfwOSTMLh6VkI8d/YA6S1IRWasIy/JsZz+ICy1IOTYFV+Pi 5WhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=9H7/mF6ZryP92cYZg0TAhb3a8scGXiZh0eOQGOZfLVY=; b=dKetKe5D9RJf9TXaNfUzWioKUhQMvZam10CPfT4q0KyAyUoyYu+RuQamomvgv4UCTv ZVhEOxzrgZdKDRobHJmLFGPgkJUQrHwtej5yeP+vjHQP1I+fQ8/R/cKNDqAYFAlqot9q C42hXLBF9zezxlEDudyeDLKrYjBGAe3IODmM/1WE5EfFj4+ou2yH/SZf/Uet0qsniycH r+TVEml0nK0KyoUd6xWBkM9yoGQaJ6h/9YjfgLqqW6ihpN+QkanVd0iFQgWwRTUqK2zS JKyjQQA7huBt2rv682VgEyLju6ZXWUJ6Zi3fweutDvmci7Ac4p+a8r59NK3LPkN0B4pd dONA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=EWrjEeNY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si2780652ejk.68.2020.09.02.08.48.17; Wed, 02 Sep 2020 08:48:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=EWrjEeNY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728301AbgIBPrQ (ORCPT + 99 others); Wed, 2 Sep 2020 11:47:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728550AbgIBPrH (ORCPT ); Wed, 2 Sep 2020 11:47:07 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79540C061244 for ; Wed, 2 Sep 2020 08:47:06 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id t10so4923077wrv.1 for ; Wed, 02 Sep 2020 08:47:06 -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 :mime-version:content-transfer-encoding; bh=9H7/mF6ZryP92cYZg0TAhb3a8scGXiZh0eOQGOZfLVY=; b=EWrjEeNYJHzpFyynRv1Tm36aYF5UDXud2Bzh/c1N/PCCgF3DRzgeHshxPGu+2ui6Zp pzZzccyDBYjqSzS+kjbbHDm2/osM2b9qg9vxfCAGk4WGU4NuBoI65yajrriCk5naVRSt l24inn9h11hreISFMmkgPUtrldM7v8NyZPsdWKYHGCvJuMIasLwos6u5TvDHgu1rKROx j6GUj7uyMoBdVcvJFn4QS55FAtFBC+qOVc/QG9MMhouCPIabQ+9hbCHCEKwtFqmmceWl +BgebIXIcsRoMRzq89VauVrHFo2u+wsS9vpU5Nkn/8jrsoePM4r/OZAojtwGNZhWbLrl mT1Q== 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:mime-version:content-transfer-encoding; bh=9H7/mF6ZryP92cYZg0TAhb3a8scGXiZh0eOQGOZfLVY=; b=fihAtTObqd9mPGwfBrZcftPMdrMHREwfAvWuABrXMpteORe99dEAu40BqS5OFKO75W 1GWHFc4C75HR+qt0gcQB8qRcnE9U/EIFcZKw4feqF6vFaJhCmkfBc50sQDINL+ftaMa6 MNHYiy6TXRJTDOH93MyFi1+94K5rEeRAJuk70p+htwk6G5l/LutsD6KZkROXdQFhhmBP CqLUJR9jZWB9FxpD/FCknU+lpWgRWASulB77eQFArLXu76Ev0Fdg62FcIKgAflUkUbgV Z4uoYZVKIuMZ30I4b2Fvbda75sd9ZnEg4mrqk4pohFSCasW+kpzmgHvh4gi/EG5Cl/+c YxTQ== X-Gm-Message-State: AOAM5314+7GuoXkyncANix3fH9uChoGKBLt2cMg2mQPHdmwc0qLBZLnx G9ZTYuhJRifNVkJ4vPQuuMA= X-Received: by 2002:a5d:444b:: with SMTP id x11mr7733827wrr.402.1599061625113; Wed, 02 Sep 2020 08:47:05 -0700 (PDT) Received: from localhost.localdomain (cpc83661-brig20-2-0-cust443.3-3.cable.virginm.net. [82.28.105.188]) by smtp.gmail.com with ESMTPSA id b76sm44507wme.45.2020.09.02.08.47.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Sep 2020 08:47:04 -0700 (PDT) From: Alex Dewar Cc: lkp@intel.com, Alex Dewar , Greg Kroah-Hartman , "Javier F. Arias" , YueHaibing , "Frank A. Cancio Bello" , Saiyam Doshi , Simon Horman , Magnus Damm , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging/emxx_udc: Remove pointless variable assignments Date: Wed, 2 Sep 2020 16:46:24 +0100 Message-Id: <20200902154628.283453-1-alex.dewar90@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <202009021127.uodVMaSJ%lkp@intel.com> References: <202009021127.uodVMaSJ%lkp@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In a number of places in emxx_udc.c, there are variables which are assigned to without that value ever being used. Remove these pointless assignments. Reported-by: kernel test robot Fixes: 33aa8d45a4fe ("staging: emxx_udc: Add Emma Mobile USB Gadget driver") Signed-off-by: Alex Dewar --- drivers/staging/emxx_udc/emxx_udc.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index d0725bc8b48a..4ceaf1ead123 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -793,7 +793,7 @@ static int _nbu2ss_out_dma(struct nbu2ss_udc *udc, struct nbu2ss_req *req, u32 dmacnt; u32 burst = 1; u32 data; - int result = -EINVAL; + int result; struct fc_regs __iomem *preg = udc->p_regs; if (req->dma_flag) @@ -1288,8 +1288,6 @@ static void _nbu2ss_set_endpoint_stall(struct nbu2ss_udc *udc, _nbu2ss_bitset(&preg->EP_REGS[num].EP_CONTROL, data); } else { - /* Clear STALL */ - ep->stalled = false; if (ep_adrs & USB_DIR_IN) { _nbu2ss_bitclr(&preg->EP_REGS[num].EP_CONTROL , EPN_ISTL); @@ -1304,6 +1302,7 @@ static void _nbu2ss_set_endpoint_stall(struct nbu2ss_udc *udc, , data); } + /* Clear STALL */ ep->stalled = false; if (ep->halted) { ep->halted = false; @@ -3073,8 +3072,8 @@ static int nbu2ss_drv_contest_init(struct platform_device *pdev, */ static int nbu2ss_drv_probe(struct platform_device *pdev) { - int status = -ENODEV; - struct nbu2ss_udc *udc; + int status; + struct nbu2ss_udc *udc; int irq; void __iomem *mmio_base; -- 2.28.0