Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp130366pxk; Tue, 15 Sep 2020 23:24:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBWIxwSpotJXg8Z6i2bHqND3vrE8jMTkv4Tciqp2p+FHqYBWw+Ss6rDa1IOHWe4nYJKYX9 X-Received: by 2002:a05:6402:209:: with SMTP id t9mr27127095edv.208.1600237485690; Tue, 15 Sep 2020 23:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600237485; cv=none; d=google.com; s=arc-20160816; b=Jr/Tf+h13GOinfNOEGe9g4mKUIwlzPPxGsorgtU60qATdIXoenTRNEjDHyGIcpCNVU nDGsMc1NtS9qDU49JVxgFO+O2EKf3USwUGLUxVfkFAVnlq3qSUbg4t0hDgrZYPcyE+U3 3YKFV9T6YuSfAUjbBVWWc8+qmOEJFSXXLJDnTctzfFZBBvBz5v3xDRpdm3YbFQ3FXzH+ CighXSxrIcIrF5E1h068VvuNJ7d+vWk0FV9NsAFLY0LiSWUbuAUFi8E0XCdLAtI54n0D xudkHyZXcSdgvYRUvyslWqgdXHtVqkVbxhipwy7PFW1O7meOcV7BfOyB8uJAXeGLZfQ0 5aFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LwAGRPfG/++jtvwjTReb+Dml/5AGfkUI7P1W3CUTKyk=; b=ltbB02TXDJQZ9PGaE5icROLH2J5jta/vqbITngoDrUxWnlHdrdsWiLNEr6yECatTZ2 EOXBE9si+lDsMcp0uxNL26QSZqtb5zyWsM0Ld40pgmMKUwEgkMrB+Dh+GULHql2+0lEy TeLr7uPylrFkKzdeNnqa7QoAag8nQYkgfuYGzspQGcCUDCv7/576NqrpSeVtxxE0PtoQ zwqRGwk1be38RBFcc2IFZwbSnu08Ti0iddOQKLSaVxkpowFHIFg8doiZB4i9kJ4BdLdL 0wjRdVjb3OgjRG21ha1eDgW3YMk+lq2MuvJSk9HjcdqmSUjCIYWWsJfawSjAzKu8GQYw u2IQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a19si11915251edn.223.2020.09.15.23.24.23; Tue, 15 Sep 2020 23:24:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726380AbgIPGWi (ORCPT + 99 others); Wed, 16 Sep 2020 02:22:38 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:46462 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726423AbgIPGVC (ORCPT ); Wed, 16 Sep 2020 02:21:02 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B17F5452E6FFA92E3802; Wed, 16 Sep 2020 14:20:59 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Wed, 16 Sep 2020 14:20:51 +0800 From: Qinglang Miao To: Nilesh Javali , Manish Rangankar , , "James E.J. Bottomley" , "Martin K. Petersen" CC: , , "Qinglang Miao" Subject: [PATCH -next] scsi: bnx2i: remove unnecessary mutex_init() Date: Wed, 16 Sep 2020 14:21:33 +0800 Message-ID: <20200916062133.191000-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The mutex bnx2i_dev_lock is initialized statically. It is unnecessary to initialize by mutex_init(). Signed-off-by: Qinglang Miao --- drivers/scsi/bnx2i/bnx2i_init.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index 6018cdd17..2b3f0c104 100644 --- a/drivers/scsi/bnx2i/bnx2i_init.c +++ b/drivers/scsi/bnx2i/bnx2i_init.c @@ -474,8 +474,6 @@ static int __init bnx2i_mod_init(void) if (sq_size && !is_power_of_2(sq_size)) sq_size = roundup_pow_of_two(sq_size); - mutex_init(&bnx2i_dev_lock); - bnx2i_scsi_xport_template = iscsi_register_transport(&bnx2i_iscsi_transport); if (!bnx2i_scsi_xport_template) { -- 2.23.0