From patchwork Wed Jun 5 14:18:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hariprasad Kelam X-Patchwork-Id: 10977103 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1772315E6 for ; Wed, 5 Jun 2019 14:18:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0899C289C9 for ; Wed, 5 Jun 2019 14:18:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB3F3289DC; Wed, 5 Jun 2019 14:18:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BD9E289C9 for ; Wed, 5 Jun 2019 14:18:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728246AbfFEOSs (ORCPT ); Wed, 5 Jun 2019 10:18:48 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42865 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727904AbfFEOSr (ORCPT ); Wed, 5 Jun 2019 10:18:47 -0400 Received: by mail-pf1-f195.google.com with SMTP id q10so4705878pff.9; Wed, 05 Jun 2019 07:18:47 -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=/kbLXj/2o2HvwHqCd08UzWTDA8h4P12DlInHOlJGg0k=; b=bvnbWzJ/IuzTHAp+GV7XYne5Np3trktMt24KYENkCeIZBrssGfAVRyqeHmraxxsC1Q f/gvwDzfGPHsn7OdUUjjuJex480svivtSn+QlMBOYFaNwl3pCgGVX9IC6G+ufO4xDfIt K98LrfRuzeTWTxuYTyYa5clUtIDlo5OiQu7DnLPvGilLyX0C40ORPFH4MMmTbH7ipiHP 6rx2VbkLIxpMbE4vsq8GVNqV32pemqR7Lz4sB1lkxa0C+JlusxEcvfQymge3IFuOXo7s mnZ2QVMbPqfbYS9ECvODdvt75DfkrRAelS7dvfKaZPWyw2qHKHlFRivsU2ggvDd5nQCZ vqPg== 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=/kbLXj/2o2HvwHqCd08UzWTDA8h4P12DlInHOlJGg0k=; b=kwGk7MwJ5NuWPhaOozVWj4gwwHzNiTscUahKOCVtqfjlH4/EvK38X+hxa3jsKjxgrr armegECMtrr8nSfpy1LP99fb2Ks7zQ1m2XzhBSH0VpxSveQ3cxGy4+3hlmfWwP5o9WqJ 3QZadSl/V1MkffdRdGcAs3vbA6sTM1dDzWFXLJ2MX0szub2Ls5vraDfd4m2nHTQwUIr6 AiJn1HwzW6++5H/BN0QK1PBxqIc634SxVg6UK9wtzgdy/5TnCPT4NL4Apn73rSz77va3 EQO+sFyVjqJPvK4UILOO5Y1mTZ1IoOfGDY7lc33dWx8KxjRs46RcoUAUFiZ+lF6HHFLo 8MXA== X-Gm-Message-State: APjAAAWAvXMj9ItXHyBw73qhFIZm+ttaS8Wld57NMoMiuwCWpex+0x15 xqG7hMmmb9+5k6AqREqzUYg= X-Google-Smtp-Source: APXvYqwXDEYq9kiH2wKwVz0PVnlUNFr+xhEr4Q1C1Je3EEQP3udttWvv1qMXVAHIvoGJuvo52Cv1LQ== X-Received: by 2002:a17:90a:8982:: with SMTP id v2mr44140003pjn.136.1559744327204; Wed, 05 Jun 2019 07:18:47 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.89.153]) by smtp.gmail.com with ESMTPSA id j2sm26134353pfb.157.2019.06.05.07.18.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2019 07:18:46 -0700 (PDT) Date: Wed, 5 Jun 2019 19:48:42 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Colin Ian King , Mukesh Ojha , Kangjie Lu , Jia-Ju Bai , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: host: u132-hcd: remove unneeded variable frame Message-ID: <20190605141842.GA7212@hari-Inspiron-1545> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes below issue reported by coccicheck drivers/usb/host/u132-hcd.c:2557:6-11: Unneeded variable: "frame". Return "0" on line 2560 Signed-off-by: Hariprasad Kelam --- drivers/usb/host/u132-hcd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c index 4a5c9b5..400c40b 100644 --- a/drivers/usb/host/u132-hcd.c +++ b/drivers/usb/host/u132-hcd.c @@ -2554,10 +2554,9 @@ static int u132_get_frame(struct usb_hcd *hcd) dev_err(&u132->platform_dev->dev, "device is being removed\n"); return -ESHUTDOWN; } else { - int frame = 0; dev_err(&u132->platform_dev->dev, "TODO: u132_get_frame\n"); mdelay(100); - return frame; + return 0; } }