Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3456375imu; Fri, 30 Nov 2018 00:07:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/WvWXIxVKlFZqzjd0ylFa09mXBhTN15gl6IjDEHABU11legpdvlFsSdlzYG/EhbUBlVip6I X-Received: by 2002:a63:5b48:: with SMTP id l8mr4075531pgm.80.1543565270700; Fri, 30 Nov 2018 00:07:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543565270; cv=none; d=google.com; s=arc-20160816; b=xMLISHekL6U9sq2iI6VxsYwdMWOmxk5DxnuHJG8HR8V5pd5Rt7V+z5jAyxgzka7UJz dqZCtvi7UTguHY/fhPNsmWptAwVVtLBd62bYKNl93i06x7DMwTkkXXfwbnPX1QsE/TI2 /lvb3R8//P83O3w5Fo4u7lLMutAyga1Oi7bf6pBsSQLGRXOArTalrTpJvEle9S4VdsMr P9pWdwc3+V3eeNHUrHYMMSx86Ykiyhrj3iIqCwj9qjpf1pfJq8cMq7ar0f42WuyzRXhe 8OZja3Iy4KJQOwKow7I/5/o24f7/JB5n1pELbdzEyCmB/nDbz4OP4v3cYYIdSZgn09tf vyMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=fEbZFaC0elmY0OyN1yUDFa3RifUOrcdLRPLS+WTsHJ8=; b=M43it0jAosisrAi2WCJ2mzpvXflvn+NRI9+Q6LWHOdx1uhCeuwk4SpJaTp7KvoFrTQ C0SsNxk1lKSEQ1K9jGhxdeKJvXraiKET4+1ngJHUUOsAR1/5aOk/VwMdQIlqYZbk5wgK xO0lczGisveYT96w0nfj75mvkXV4D2YxdKOG2rzUQgaIL61dquHAWADHjFDqbk+63R1r 4HLwddHJKTSVLzZ6NzBUd7DRCMnabizEuHX+pHBZCymGGcEAAwoUBhHdoKGg0ta24Ar8 uZNdLQiREgHCK7dddP2YEEPQgK8OddSRXrD03obcYz9TmZTXm+MaHhAXsunpnhCnh6N9 oznw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o14si4102673pgj.59.2018.11.30.00.07.35; Fri, 30 Nov 2018 00:07:50 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727108AbeK3TOL (ORCPT + 99 others); Fri, 30 Nov 2018 14:14:11 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:51827 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726752AbeK3TOK (ORCPT ); Fri, 30 Nov 2018 14:14:10 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 03AC3C078451E; Fri, 30 Nov 2018 16:05:41 +0800 (CST) Received: from huawei.com (10.175.104.208) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.408.0; Fri, 30 Nov 2018 16:05:39 +0800 From: liujian To: , , , CC: , Subject: [PATCH 2/2] driver: scsi: qla2xxx: fix returnvar.cocci warning Date: Sat, 1 Dec 2018 02:07:44 +0800 Message-ID: <1543601264-12610-2-git-send-email-liujian56@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543601264-12610-1-git-send-email-liujian56@huawei.com> References: <1543601264-12610-1-git-send-email-liujian56@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.104.208] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unneeded variable used to store return value, detected by the semantic patch returnvar.cocci. Signed-off-by: liujian --- drivers/scsi/qla2xxx/qla_mr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_mr.c b/drivers/scsi/qla2xxx/qla_mr.c index 60f964c..bb66ea4 100644 --- a/drivers/scsi/qla2xxx/qla_mr.c +++ b/drivers/scsi/qla2xxx/qla_mr.c @@ -1712,7 +1712,6 @@ qlafx00_tgt_detach(struct scsi_qla_host *vha, int tgt_id) int qlafx00_process_aen(struct scsi_qla_host *vha, struct qla_work_evt *evt) { - int rval = 0; uint32_t aen_code, aen_data; aen_code = FCH_EVT_VENDOR_UNIQUE; @@ -1764,7 +1763,7 @@ qlafx00_process_aen(struct scsi_qla_host *vha, struct qla_work_evt *evt) fc_host_post_event(vha->host, fc_get_event_number(), aen_code, aen_data); - return rval; + return 0; } static void -- 2.7.4