Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2352243pxb; Mon, 20 Sep 2021 19:49:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDDcymOexr4GDrizDyBxV/TRtWWN5TfuXfbQvk3Vexx+lMGvQAHRgXcxelUYYEeCtBcSE4 X-Received: by 2002:a17:906:29d0:: with SMTP id y16mr33295446eje.477.1632192555239; Mon, 20 Sep 2021 19:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192555; cv=none; d=google.com; s=arc-20160816; b=dQMuajOv4UyA4k3j+84rbp4VPWLOrKm/ukibPeJq4LJCjOMRV/wlyZ1TIt+dTd62qc aKVYlAQZmDvLfmy00yq0E/FQG/fwyKBZQ8dyBFC3Mcat61fWQLQFg/9M4DVAIn3dEdnG P4htI2/Qw6oR9MGQOomwvk6lUfh2DtiBa0ayF/sd7irE3oyrap40FOQM+nc2p4VDzMMz NkuxSSByiprad90h0/5Q6p9GfOYEiBxCCtXgAof9lYHQ7VD/PRweInBPbA/P27mBkaN3 Dx8FUQsgMaAR3K760aGU32ThfbtESs5HP04+x4TT6hfDLR+7zEomfWeOC5ZG9CEPZfZe gzZA== 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=TtlurnCh+60pWjLvkgJhvX+gNvaU7RLACl7w26iTqjk=; b=cLzt6CybNuirI+v4nZ9vT7rWCX2A2RorRoQ1jNYu7n2GPzJXcsX3WIIIyVWHHHxxJ8 zOz0ikdwWREvNzQk5F7XPhsm6vzSVb1TtEZ+aa1aqj7XzHnzF3lW9KzQTen+oJ9y3zLs hPdm6PfD6hdPinmTmH4hp5OghT/9C+5c8xB0WlRACbwXRiNaFQytXPMbFBkZfeS9W2QS fqZdblQRmuQUfDGOsMphCTBDeqHeBP2rirRi0Doc/bxZIy9YfLbZZfxQ24uo+6J/WErr zypZEqOusTnItjco+HeK4R+MAGNDK+iroK3mb3ITLnj9atsVFDt26IQtuWQ18IEXfRvd IXmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=axLQRFJE; 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 v8si4007454ejv.118.2021.09.20.19.48.51; Mon, 20 Sep 2021 19:49:15 -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=axLQRFJE; 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 S1379435AbhITS3R (ORCPT + 99 others); Mon, 20 Sep 2021 14:29:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:43458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377737AbhITSW7 (ORCPT ); Mon, 20 Sep 2021 14:22:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6839F632BA; Mon, 20 Sep 2021 17:24:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158675; bh=uLgFZxX+cwiet4pUq59oiyiXdrCWvxBD5wFY6RaxJxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=axLQRFJE8qvp4Ls4fPFZyzhzPV/NW6S5IUyPHCuVs41ROJoFFoRACnEhebuucYuEE krWFHp7rhEhNYjvpfpUyDeQrnA85TBB3xPEvYsMnboZ21YgSaVqDbIpoMTDcpAJqOu 9UAhF8pKh4h9t41Ar8s2sKN80Wd5KyXIWzwjXHW0= 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.4 258/260] qlcnic: Remove redundant unlock in qlcnic_pinit_from_rom Date: Mon, 20 Sep 2021 18:44:36 +0200 Message-Id: <20210920163939.876443314@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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 c48a0e2d4d7e..6a009d51ec51 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c @@ -440,7 +440,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