From patchwork Wed Jul 6 23:37:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thinh Nguyen X-Patchwork-Id: 12908822 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7C26CCA481 for ; Wed, 6 Jul 2022 23:37:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234254AbiGFXhV (ORCPT ); Wed, 6 Jul 2022 19:37:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231558AbiGFXhV (ORCPT ); Wed, 6 Jul 2022 19:37:21 -0400 Received: from smtprelay-out1.synopsys.com (smtprelay-out1.synopsys.com [149.117.87.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8359B2CDC0; Wed, 6 Jul 2022 16:37:20 -0700 (PDT) Received: from mailhost.synopsys.com (sv2-mailhost2.synopsys.com [10.205.2.134]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mailhost.synopsys.com", Issuer "SNPSica2" (verified OK)) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 3EEB5C06E7; Wed, 6 Jul 2022 23:37:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1657150640; bh=dA2YHCwSJAcz5AMgI1fqU2N3tyrdZDQD1ZO/Td92ZvQ=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=bdzRmZTHphuShNJUHu1XzuV8qt3YtU9eTBa/vdaK0/BV/vazmJ/Mqjnsq8GdCmQdS ebpKOT0X70qikChv8FzWNqJTcsi16LcZmCbbjCxGw6hypuhVUIet/q7G1Dzex1oH+/ RQGnxz/UKeg/VxE+N+0mNo5+uVSXcZp1VwDG1jhZZ8cSq7lJ/KAPjrFqbpC4QTsjfw JzHX3krbhcNicaYxagT6M1yGJiH3yjD8c7wVNDVdD4qoPBEUKF9J18Wmfg0tkRH+yY GvlrvxGVSY6wPjdoTFktC47WDutS5ZItyn89kOCWjpCJ5jYsn9MUCIkte+wPVIq/uf /4FNYGyDIsg4A== Received: from te-lab16-v2 (nanobot.internal.synopsys.com [10.204.48.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mailhost.synopsys.com (Postfix) with ESMTPSA id F3ED8A0096; Wed, 6 Jul 2022 23:37:18 +0000 (UTC) Received: by te-lab16-v2 (sSMTP sendmail emulation); Wed, 06 Jul 2022 16:37:18 -0700 Date: Wed, 06 Jul 2022 16:37:18 -0700 Message-Id: <5c0de82cc09fdca096aca491843918355faceb33.1657149962.git.Thinh.Nguyen@synopsys.com> In-Reply-To: References: X-SNPS-Relay: synopsys.com From: Thinh Nguyen Subject: [PATCH 28/36] usb: gadget: f_tcm: Cleanup unused variable To: Felipe Balbi , Greg Kroah-Hartman , Thinh Nguyen , linux-usb@vger.kernel.org, Dmitry Bogdanov , Mike Christie , "Martin K. Petersen" , Roman Bolshakov Cc: linux-scsi@vger.kernel.org, target-devel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org se_cmd is not used anywhere. Remove it. Signed-off-by: Thinh Nguyen --- drivers/usb/gadget/function/f_tcm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_tcm.c b/drivers/usb/gadget/function/f_tcm.c index 28b560ab44fd..1e7d29f8aecb 100644 --- a/drivers/usb/gadget/function/f_tcm.c +++ b/drivers/usb/gadget/function/f_tcm.c @@ -675,7 +675,6 @@ static int uasp_send_read_response(struct usbg_cmd *cmd) static int uasp_send_write_request(struct usbg_cmd *cmd) { struct f_uas *fu = cmd->fu; - struct se_cmd *se_cmd = &cmd->se_cmd; struct uas_stream *stream = cmd->stream; struct sense_iu *iu = &cmd->sense_iu; int ret;