Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2401581ybi; Mon, 1 Jul 2019 11:22:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNY+xLlXSZem89miexexZdkG+aD+eDVyPmvF5aQRJHl/KHVEhpegZjb8JN4vmyd/B3EYHj X-Received: by 2002:a65:60cc:: with SMTP id r12mr20422617pgv.333.1562005331639; Mon, 01 Jul 2019 11:22:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562005331; cv=none; d=google.com; s=arc-20160816; b=EA2bXAKK+nfTZgtDzKdFUiQVcEckFB66qSvz4zxBLkYFwVCxYTyWKnODIZenqPLdeS FmvgzYzMvHC/bD8xXOcVgWbLOI3S7XhJ8X2SSuPCKt2PlOl0ARMqO+FE/XWzP9Xxy/mX vS2w3GdZZnVulFzmsMEI7JHS/x0tkOird456PXaRwMV/nFPFZa9LS6vHGHyw1BcN4pgk wylLFehKFBv6Hr64jAAagZgvaf6pa2Sw97CJS5VnADOayX85LP87ruaXCVfldKl50/tr GO0lFn+Am+n11pCLxp7Aw8ad/SR1OlIdu+/IaIDOyqvHViWS4UKiQLYCq5IeLBLYaVIG YEfw== 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=fA4z/zGO1uoPnsV4YhTNRfiYI2+JEgtpBRkd7XtEqQI=; b=n43hAIWpN5M8lvRS6Qp18Ingur7RP66tIuApU5y1mmwGyr8C4gZ3Oqg8NZ86gkyJJ0 S8A6X2FKUOuDrk8ZzWRIE+2hGfaAywfSiPvIhH4Xawdpn8T8YBMTn4YWd9cl+7iXdrQ3 18N/F0lToMKX/tD/iRwUTlD/v4xtKVrW+7UOXW8mMI2XJwFSsN/CU4riCMd3ZVdbPHB8 SrrfgafSg+bfcFuveWQRUPZo++tp4iqN6w3A5olVJb5IBRvCNRRZKjH9js2ijE1owMLf 3YggxJOX2r5rZdLGQEaVYBWsj280QooCJ5ntDnB1trsKqb0/lQjnHaXUEMir0EE15pET +DjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QP3emyhE; 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 k16si10661422pfi.174.2019.07.01.11.21.57; Mon, 01 Jul 2019 11:22:11 -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=QP3emyhE; 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 S1730349AbfGASAF (ORCPT + 99 others); Mon, 1 Jul 2019 14:00:05 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:45876 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728121AbfGASAF (ORCPT ); Mon, 1 Jul 2019 14:00:05 -0400 Received: by mail-pf1-f193.google.com with SMTP id r1so6926340pfq.12; Mon, 01 Jul 2019 11:00:04 -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=fA4z/zGO1uoPnsV4YhTNRfiYI2+JEgtpBRkd7XtEqQI=; b=QP3emyhEAtXYs0ZZiN3gCElkYGW/ksK1CsZvpzVNUMAuZDzvXUeb0AwP4qLUvmcehE blIpnOBNH0napTkztZ8aDlzH5JVhlvsvWosmmXM9mP3qb/DGaUI3rP29tWxJKYPYDWcq KuOVqZLYtl0eeA1JddMDPvkWhpGhKublYPdWMSPcMnTEVsMtOkKHM+zhfyH5RmJ7wtHt wDyoHQayrWGfHkP/aceEzkac5n/FeGmBta0bcD58X2oUIHmHZMSNPHPCBacQxdqJYY5S 2snL9tm+LySaBUwpiaDWcURjMNf2kePHBeh9SrbytLmDJGhbxSLhClzrfzqbAISbOTt0 HiUQ== 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=fA4z/zGO1uoPnsV4YhTNRfiYI2+JEgtpBRkd7XtEqQI=; b=pTh7U0LYNicK03djyfOgyjCjJV+fkTKfrQ6Gc0gCetOHHBrGJS/42tZ+1PL8ed1qm2 oYUkGW0jE9IvI4/ra5v+u0qAlVjSUcK3NpYRBHbkNtv+blpBACOjwxMZo/diHRh3scHj KEzKI7+JHCgy6YAeAg2A+O/esQwaL+8U61MEqRafR5+LzSjNlG8Z/MjW8sefWO2L+e0j 41myH248lVjax0yMQS+g3x28QU119qIsW5dtWH83R2lFzErCFOvnCrjQlblXNsnwjLV5 aSKFSoR2bor+CKnM3btXVMTj2vAFgHco63dYz4oxg6VhqwSREwzK+PVtImhEcNEnZX6u FL3Q== X-Gm-Message-State: APjAAAWx/bdrOfLyqc2cSW7Wo3C5bdcl96SD+EiseK9XMWX+YW/lQtBg 2oKz2x6XFzuPjADQsAoQNnQDGndE X-Received: by 2002:a63:1208:: with SMTP id h8mr25004406pgl.377.1562004004356; Mon, 01 Jul 2019 11:00:04 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.187]) by smtp.gmail.com with ESMTPSA id i36sm11608512pgl.70.2019.07.01.11.00.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jul 2019 11:00:03 -0700 (PDT) Date: Mon, 1 Jul 2019 23:29:58 +0530 From: Hariprasad Kelam To: Oliver Neukum , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: image: microtek: Unneeded variable: "err". Return "0" on line 616 Message-ID: <20190701175958.GA9826@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 issue reported by coccicheck drivers/usb/image/microtek.c:569:5-8: Unneeded variable: "err". Return "0" on line 616 We can not change return type of mts_scsi_queuecommand_lck as it is part of DEF_SCSI_QCMD Signed-off-by: Hariprasad Kelam --- drivers/usb/image/microtek.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/image/microtek.c b/drivers/usb/image/microtek.c index 0a57c2c..ebe1362 100644 --- a/drivers/usb/image/microtek.c +++ b/drivers/usb/image/microtek.c @@ -566,7 +566,6 @@ static int mts_scsi_queuecommand_lck(struct scsi_cmnd *srb, mts_scsi_cmnd_callback callback) { struct mts_desc* desc = (struct mts_desc*)(srb->device->host->hostdata[0]); - int err = 0; int res; MTS_DEBUG_GOT_HERE(); @@ -613,7 +612,7 @@ mts_scsi_queuecommand_lck(struct scsi_cmnd *srb, mts_scsi_cmnd_callback callback } out: - return err; + return 0; } static DEF_SCSI_QCMD(mts_scsi_queuecommand) -- 2.7.4