Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2353789pxb; Mon, 20 Sep 2021 19:52:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp5l3TljMpRcJElmuUe2BvkN7mOnS9nDmhXi76SIfRcaddnRokPEMTYahExAf9/XlDXubs X-Received: by 2002:a05:6e02:154e:: with SMTP id j14mr6394806ilu.303.1632192754413; Mon, 20 Sep 2021 19:52:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192754; cv=none; d=google.com; s=arc-20160816; b=t2blHMOG1CMWsW0nZNytTtj9Pzb8fQRk9PvH12b5g3G6AJs3vyn6iZoNNnW7lWCJP9 2l7amAia87CvQ+ViEfl39bULSFUrT+lV/eY0hYhAiqYnHXHKB2ClLVGGlw0I1gPk9Dp5 WjF3cWJXhdK0PUZupbozImHSScvldIutrEwuvd0p2OslFZkQ9O3KZ8UmtFdgulfKZ9Kx U/4ezav8UQ5Oe3oeoIb9k8hXcYZq6RXX10E/KM/snS1A/7qt1SqpOlK/2OOMBQ64a2R6 rX+HUonlPqDcs9t7M0Pul9lwsMAthauK2S069/YTchSH2K+mjRLc64A5joptB6siHy9f v3jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+vRgbhCXIMQJpU/EYk7vA/hDt7NzANE5OWoOM4z4Cj4=; b=OfZs9qo49m/hiRHtGTIp3wQrJa4GSK2ghSo2lQU14kLWoV8kfNEqjUfNJRR+ounszU V5ik6IdvgOXYTIb5Xdc6jOssWe75MZpZ93v4RBI1vssTxYo4QpirVkafRKLN0uTu3qMs gIwhc02bUX2T0hZLeiJyJzwrkN4YWcAQkYlEZq4JoaJuFZNraTbEN+N28Zd0nVx2iXF3 BcWBWfHA5g6xE4Zs062Q6rmCaAjjve/7EBRzDsydz/S+cLJDEvjIKl0epmStcfr4cS4i ch7a2dn41/QjQ02R2O4YMODywmhbBpvtxehnjwUUIZy1qBXV8UlPQP9i6z0hbg8DCKkf bkoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ngbUz1xg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c32si14835029jaa.44.2021.09.20.19.52.23; Mon, 20 Sep 2021 19:52:34 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ngbUz1xg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385842AbhITSw3 (ORCPT + 99 others); Mon, 20 Sep 2021 14:52:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:33192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385433AbhITSu0 (ORCPT ); Mon, 20 Sep 2021 14:50:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 39D4963380; Mon, 20 Sep 2021 17:34:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632159276; bh=b/rRNjwkpOX6ShPOUdeXpzNgnbvmGEbOzQ6Xy+tOEmk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ngbUz1xg3b7tBkoelw/wBXzqA76nSAHn6Hc9UJr7RiDijCW/Nmtsa4w1b6T/JwAJ2 Up0UytqyemXy0pkBVTOoTl2RTqoooTYXY8/z/xQcfm/ydvXnJpJ2hYd9Vd2XvJAG9c 1ZC8zpZCOzyn2iV/CtxIbiZlCaSorxYofdOHN0dM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dinghao Liu , "David S. Miller" , Sasha Levin Subject: [PATCH 5.14 157/168] qlcnic: Remove redundant unlock in qlcnic_pinit_from_rom Date: Mon, 20 Sep 2021 18:44:55 +0200 Message-Id: <20210920163926.828996568@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dinghao Liu [ Upstream commit 9ddbc2a00d7f63fa9748f4278643193dac985f2d ] Previous commit 68233c583ab4 removes the qlcnic_rom_lock() in qlcnic_pinit_from_rom(), but remains its corresponding unlock function, which is odd. I'm not very sure whether the lock is missing, or the unlock is redundant. This bug is suggested by a static analysis tool, please advise. Fixes: 68233c583ab4 ("qlcnic: updated reset sequence") Signed-off-by: Dinghao Liu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c index e6784023bce4..aa7ee43f9252 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c @@ -439,7 +439,6 @@ int qlcnic_pinit_from_rom(struct qlcnic_adapter *adapter) QLCWR32(adapter, QLCNIC_CRB_PEG_NET_4 + 0x3c, 1); msleep(20); - qlcnic_rom_unlock(adapter); /* big hammer don't reset CAM block on reset */ QLCWR32(adapter, QLCNIC_ROMUSB_GLB_SW_RESET, 0xfeffffff); -- 2.30.2