Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7040093ybi; Wed, 5 Jun 2019 10:13:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyM7jimB1C6u1dK217qKoV14e5X8ubxdVKjjKCs4kYGK/O0V6Dssjj6Gibg4A5mHnjO+7DN X-Received: by 2002:aa7:86c1:: with SMTP id h1mr33118207pfo.157.1559754797990; Wed, 05 Jun 2019 10:13:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559754797; cv=none; d=google.com; s=arc-20160816; b=OXaZID0ccLIsfHwV9wj4bUsK7Zq33VkVu89LaqF9Ai9Ic1kvinFVLcEkDuyxJaU6to vvr/El70hKHlYe+4FO5qySBnrJMKOS6fGykjDFopvzxmrmHU8e7YgcvuYHB9eicKtyjE uljfMS/2T4kZi5F7FeJ4ZAIFwFAXiZ3PeIRsl2DCzQ493FJMZ9OecADmbZOti/hpgNRL Kmzj7muDZayh9k1wKrC4/wrsXf5L1hNKc2wrMVS0GutZqFj/LefnSD3He5vrlvkythC+ xNtpzmS3TlgozWoLVsHPQ61C0/Xox9WxMm77eW+MfmnZM/v7bFDzL4atGZhC2GTq/74P Ovrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=v+XL33nKKgLzcxRQhQhEGC6TDQvccYp6B7En+erV9hc=; b=c/CidrhR6Hvafi6HuSzx2IJGwA9KDCoi5u0l1z5ALCvUPRklmqoioghbxDHQ4KplT5 EG77srNNEd5osPo4+LejGWzQbIjYw8JhDrIW6FqAGGDG0KfLet+uyesAEaHrjb9iUtXA 3Kx2qijbvPpojiS37/WmwRktZv4wRiIqvnri5GJ9mWJO3rZEt6o6OFynlqjre2ENXHnu 5TJRLUHWrIi2DmKBq7t1hzSx14nBuJc4OD7ziPjFZIYmjbQP0WhYz882/b4yfH++IOIy Xp/6wkwkofrh9/ZztEJ8D6E+FT1eWe1jKSy/ebE6GEnSGOT+hUcqwUljv0au4yO+OwV6 7e6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=he3iEBP4; 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 x9si16320263plv.182.2019.06.05.10.13.00; Wed, 05 Jun 2019 10:13:17 -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=he3iEBP4; 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 S1728813AbfFERLy (ORCPT + 99 others); Wed, 5 Jun 2019 13:11:54 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:34876 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728577AbfFERLx (ORCPT ); Wed, 5 Jun 2019 13:11:53 -0400 Received: by mail-pl1-f194.google.com with SMTP id p1so9917913plo.2; Wed, 05 Jun 2019 10:11:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=v+XL33nKKgLzcxRQhQhEGC6TDQvccYp6B7En+erV9hc=; b=he3iEBP4RwmWS2hsetYGcIfsHu6mjuFkNE/44bYCJIdQvaLJ5hco7f4N15KuvI7SzQ 25V3oruilcb3EeYf/ho6mZJ9iD6cz8kqD0+GetH8bQbbWBN5P24cxJeCd7t7/jU36hUY MDXKNPnZRKk7pFFlXKbDleNfv1Mw18jufPZqLDyD6LE9H15h1K9PpOsY+lSbK6n2xpal MhWAlKKok5LqzYIausi5764vbJYDiQynYgbAttuI+ntxphashbZoxe0QLMIOevq4o9ku QG4lcSVhdK16awf7duEkmsxk6iS/fC5xR4UwEkamihST27EwoH9MnjbxiBylEI4d5Yjt em1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=v+XL33nKKgLzcxRQhQhEGC6TDQvccYp6B7En+erV9hc=; b=kCUjv+mLUJh2DrhnOqp3gsZ6mBOXDtuzoKIHDV5jztvCWLaI9FDQP9cMtUUpyUOKTL LVuopVhfzg/zC4XQu9Pc6Y/hrC4TQt9lK4sAhuauyV6dgMXB6rrgTBONgGk9UMbis4Tb LRXq63EqDzDlU7HyyQW3r9G3GjyaWgFh9iS+EYr5GMutz3MG/7JYDNg/WRAgJttmZTw+ 8pN8XvDNjkrrrSGG8vjLVyEPyVYc+9Ioe6rZlCxa2ER90MrRk5NWZGq50qrPoIF+MozT 2NrQo6rR3gPoPPkko/qTVPY4vVskfbdvARyc9sA05N7bY6tWrDL8EsRuchxxM9gX7M+9 w4WQ== X-Gm-Message-State: APjAAAVsAfFa5Uu20Xd2CONvAhL8TD6sSV7dNGxBKH6gjp4tBH5xCtnr fLv6+dm5KvBZbOBx6Ksxcv8= X-Received: by 2002:a17:902:d916:: with SMTP id c22mr19896662plz.195.1559754713050; Wed, 05 Jun 2019 10:11:53 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.89.153]) by smtp.gmail.com with ESMTPSA id j20sm22027968pfi.138.2019.06.05.10.11.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2019 10:11:51 -0700 (PDT) Date: Wed, 5 Jun 2019 22:41:47 +0530 From: Hariprasad Kelam To: Bin Liu , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: gadget: musb: Remove unneeded variable Message-ID: <20190605171147.GA9558@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix below warning reported by coccicheck drivers/usb/musb/musb_gadget.c:1088:6-12: Unneeded variable: "status". Return "0" on line 1121 Signed-off-by: Hariprasad Kelam --- drivers/usb/musb/musb_gadget.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index ffe462a..2cb31fc 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c @@ -1085,7 +1085,6 @@ static int musb_gadget_disable(struct usb_ep *ep) u8 epnum; struct musb_ep *musb_ep; void __iomem *epio; - int status = 0; musb_ep = to_musb_ep(ep); musb = musb_ep->musb; @@ -1118,7 +1117,7 @@ static int musb_gadget_disable(struct usb_ep *ep) musb_dbg(musb, "%s", musb_ep->end_point.name); - return status; + return 0; } /* -- 2.7.4