From patchwork Thu Oct 22 18:14:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 7466581 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DD4409F6CD for ; Thu, 22 Oct 2015 18:14:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 08C8320963 for ; Thu, 22 Oct 2015 18:14:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1D3E52095F for ; Thu, 22 Oct 2015 18:14:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965596AbbJVSO1 (ORCPT ); Thu, 22 Oct 2015 14:14:27 -0400 Received: from mail-by2on0065.outbound.protection.outlook.com ([207.46.100.65]:30784 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965470AbbJVSOY (ORCPT ); Thu, 22 Oct 2015 14:14:24 -0400 Received: from BY2PR02CA0118.namprd02.prod.outlook.com (10.163.44.172) by BY2PR0201MB0743.namprd02.prod.outlook.com (10.160.124.25) with Microsoft SMTP Server (TLS) id 15.1.300.14; Thu, 22 Oct 2015 18:14:21 +0000 Received: from BL2FFO11FD015.protection.gbl (2a01:111:f400:7c09::117) by BY2PR02CA0118.outlook.office365.com (2a01:111:e400:5261::44) with Microsoft SMTP Server (TLS) id 15.1.306.13 via Frontend Transport; Thu, 22 Oct 2015 18:14:20 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.173) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.173 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.173; helo=milsmgep12.sandisk.com; Received: from milsmgep12.sandisk.com (63.163.107.173) by BL2FFO11FD015.mail.protection.outlook.com (10.173.160.223) with Microsoft SMTP Server id 15.1.300.4 via Frontend Transport; Thu, 22 Oct 2015 18:14:19 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com ( [172.22.12.162]) by milsmgep12.sandisk.com (Symantec Messaging Gateway) with SMTP id F5.61.32178.B7729265; Thu, 22 Oct 2015 11:14:19 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.248.2; Thu, 22 Oct 2015 11:14:18 -0700 X-AuditID: ac160a69-f79f76d000007db2-47-5629277ba4c5 Received: from [10.60.52.33] ( [10.177.8.100]) by milsmgip12.sandisk.com (Symantec Messaging Gateway) with SMTP id E7.B3.04661.A7729265; Thu, 22 Oct 2015 11:14:19 -0700 (PDT) To: Doug Ledford CC: Sagi Grimberg , "linux-rdma@vger.kernel.org" From: Bart Van Assche Subject: [PATCH] iser-target: Remove an unused variable Message-ID: <5629277A.20908@sandisk.com> Date: Thu, 22 Oct 2015 11:14:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsWyRoxnkW61umaYwZP1AhYvz39gtXh2qJfF 4kbbAzYHZo9n0w8zebzfd5XN4/MmuQDmKC6blNSczLLUIn27BK6MF+ceMxc84KhY8fckUwPj CvYuRg4OCQETib7nJl2MnECmmMSFe+vZuhi5OIQETjBKbPu6E8rZwSjRe3ABC0zD8vkiEPFN jBLr371iB+kWEVCT2PRqEZjNLJAscWTJbWYQm03ASOLb+5ksILawgLnEmdf3w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fPl P1tSzJVYijMSDbWYi4oTAQGlu7PfAQAA X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD015; 1:3ksmN7AMsJlHYJdaM4tcyLMmLcdnAcLj5Dy7qw5t4XkVf9HpwljvEAiHBQtao8IBaHRy6j7hqtWZRTATHuGTzFtd47uWGfrtbvhSDm1k2riXuRp0MwCyLR1Rf/KSr9PSZ1QhflL1VvQAfPw/Mek8evh3YjY2BSg+7ahguw4aOjPOqFjmzBeew91jOMwgI0M0JY3sip59VpxohDg2remalywNpFdL9RRrVTOqUKMxwfDXvivV+gGIuqZLpVl1yMKIiybgDxjSBglduPPKncPXTY5/qQn+GYomo10NhesvtAQ32A5LuvwK7Xce6RRUqVZLdgghWseHT4mW/r8RC4K3+ry6S9YMiu93UUPh+3IIyO8= X-Forefront-Antispam-Report: CIP:63.163.107.173; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(189002)(199003)(229853001)(33656002)(54356999)(92566002)(50986999)(5001960100002)(47776003)(106466001)(64126003)(86362001)(36756003)(65816999)(5008740100001)(77096005)(46102003)(110136002)(23676002)(5001920100001)(83506001)(97736004)(81156007)(189998001)(19580405001)(69596002)(5007970100001)(65956001)(87936001)(64706001)(50466002)(65806001)(19580395003)(4001350100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0201MB0743; H:milsmgep12.sandisk.com; FPR:; SPF:Pass; PTR:ErrorRetry; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0743; 2:yL0ODl7PyiRtRhZ8MisOajjgXg+2rXthhguUO5vPIEulGEQ9ukedRZQ7yW3Il9jx57alTRJH/T2XQQuxTpvMol8ObKrFWNSu8B0mwy2ZvvSAl4tPJjJiVkYHbHtDd0aqZNVS66NHzmYo3t/kJ/j7ieQIswb59Y/10nepWJeIsu0=; 3:fnpnyWQTVYSthw5SFRCsiZ3RvvjnwigMQHS22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2urW40+axoWDn3eTMTQCUTKLOLOwEFoSA9clSquHJfovjJGIC9XFxiDJoYJhi; 4:0dOrO5BGIIzZx+UwBjfrDqBWMLI/p0VBhS221RftjPUuh/ss/APlRcnBqPTsBGkYTn526NjrzszH4cBnUNwdjU51D8ThZGWRcs3v8Zsk2ZBpzg3mfBG/PVvAoiWrTmuAtK5YDYCgcqIwOduBMU2GNIPUkaK3uxHmvJSe9xC8CF/qCvffszrC8A7JdO+FCekyjKk7je3ARGGLtZBF2SOxGzelkJcsw7SpXVqqCmeJgELPbViG9QqjAL3deuW4Io4jhULLn8dYxsWeahWqFiflj4D0FjOVoG5mnqO2a8xSTuBlshA7+h7d1JP6YvHcsaswEgeyo9y9acILjVrjnjdZHwd0bIn8czr0KU5GIsxvlIHg5I/6Kb8jeGwr3t42GKAl X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(34787635062028)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(520078)(3002001)(102215026); SRVR:BY2PR0201MB0743; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0201MB0743; X-Forefront-PRVS: 0737B96801 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTJQUjAyMDFNQjA3NDM7MjM6QjJoeGp1NVRCOTJxL2NYSFpQczB6SVlq?= =?utf-8?B?amJ4R1JRUmJFeUZNc01WS3hENWw3WEh4Q00rVHdjWVVyOUdEOHdYS3ZKN1d0?= =?utf-8?B?UWpzTkRuZ1VTQWhxS0FzbnIzbTJTL3lsQ3J6ZGk1WGNnRStYWW5BN01kbzdn?= =?utf-8?B?T0JJRThEK2JkcnlPSlVlS09yKzhwWDEybENmTVJudTZHOVpnd2dqMGdFZkw0?= =?utf-8?B?T3ZjOFV2WVRSNlNwcDREL0F6Mko2dzA1eXRjbmN3ZGVCN0lLQlFhZzhDYk1p?= =?utf-8?B?TjVBanR3cldRTC9OUlJkYXJPWlht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dDkxeHZxSmRMeFlDZDNkcDIwYmhaRVBEaFcyRmhMWDVqc1JSWkJ0?= =?utf-8?B?NmdQUkZtUE8vK1ZQbHpTSUo3R2k3TmtYenZCazkwNEN0bk5mTDkwaUNka0Ur?= =?utf-8?B?ank5UHBkUWZueG82TnpyM2pTb3VjQlRDR0Y1allsbHpxaGh0WEhITkJ3RXZL?= =?utf-8?Q?iKmC60bPiw?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0743; 5:K7xIiLQVRL9FdL7X8rjgHPUkCMvORFEB7tyKnONR5hfKbPdkh3A7GQ6EsF65X4tF59aeJ+gNC3EwOPl7YPwmkqL73/06XSnI7IRltfp6kQ/QBsUXfP/rV+0ZWT4DDG8RMJvdz80bJUbQsr5790x+EQ==; 24:gG7kVILyl6l4oLb7ECs0NXhI9Cnk5ulO+3k25lzcwBM4KypGv/LN/dXyNsUmTO/m84ymih8mKbvs/M9NViiAEglQce5/b53R+F2xzl/2dSw=; 20:VKOgzH6y91u/OsItt0+sYNcITZxW0l5hRDYpaW7Lgfw+VtJ0Xhpu0NTgu5CODXRIZPGaFY92OTDLGGR0DsbXDn1s2ehdtubGoBZZwLdRYb4rG3jQ18i9sjFgOnIPMGWma05zk0+UoOc8/f6YaZi9fLD2cUTNiTvbAlbw4jnhalmxKsAN/MaBgTkwDIE1GvMww4rlJrA8AfMd166dhLCt8b8bwcSOIBHZTIkZhtOlJfxFktWmzHeyzBjUghSZjpqJ SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2015 18:14:19.2705 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.173]; Helo=[milsmgep12.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB0743 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Detected this by compiling with W=1. Signed-off-by: Bart Van Assche Cc: Sagi Grimberg Reviewed-by: Sagi Grimberg --- drivers/infiniband/ulp/isert/ib_isert.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index 403bd29..d255fe5 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c @@ -1550,7 +1550,6 @@ isert_rx_do_work(struct iser_rx_desc *rx_desc, struct isert_conn *isert_conn) struct iser_hdr *iser_hdr = &rx_desc->iser_header; uint64_t read_va = 0, write_va = 0; uint32_t read_stag = 0, write_stag = 0; - int rc; switch (iser_hdr->flags & 0xF0) { case ISCSI_CTRL: @@ -1577,8 +1576,8 @@ isert_rx_do_work(struct iser_rx_desc *rx_desc, struct isert_conn *isert_conn) break; } - rc = isert_rx_opcode(isert_conn, rx_desc, - read_stag, read_va, write_stag, write_va); + isert_rx_opcode(isert_conn, rx_desc, + read_stag, read_va, write_stag, write_va); } static void