Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2565527lkm; Mon, 20 Sep 2021 18:51:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGrq1/A9qI/QXHa+mVosSfl+IbGIX0zs9SqQXY/BvGaWMTIXkx5L0WL1F+Y9AM8IcaXmNL X-Received: by 2002:a5d:93cf:: with SMTP id j15mr18453962ioo.113.1632189023800; Mon, 20 Sep 2021 18:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632189023; cv=none; d=google.com; s=arc-20160816; b=P6mzDg4ERaWdTNnqwjyPIH25CzzzE/d6kjO81whdpDLxhwwbbqVcnOB3DCrAyLnOgk yxU/tRsB0rgy6bygrmtOv/23piXVGvHn7h8SDTBhlxg+Nd1UGjH5kbPfo5IvVxfAqDRa 6h9+OViOzLEd/DHuhihNmYDKTrfS3iwEGCh6sZr895z1mKRS2NcwPg3aZbMclL3TqoJK uRDy8uecDG1aY4z5tpo6ZlJDv6cITZsAqxV0s2afPcwa5nwszmvk0/teXU2QTIxl2mn6 o8OLtSq2GngGdUL2uDmzkokOJCac1qzWGOsXO4rEhRj9svAsQtD6vcLzQGie3KoLCwKP zW3Q== 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=ceHXTYKYvI0YS4Elfl/G63amUpi7C21vdsnKgzd32wyJLSOoG8QSLSyJhMsuMX49jG mnsuHHH9iWYwrYZeVP2oqDXzkHaBdpQ/nEtqV+iSBbH8CPf/NRNX4pnJwMfZvijhKMVq R56I+TiNkLltBk+zQwb9szye9HJAvcEyGj74C2v96L1GLuuufAaIDnRmHMawcUB8wQA3 MTKf/g1PzDTjXRMGJV+TKSruXPwhn2fEhzs8Tvod7rhJTVF+QPBb49FYCk5V559XJ2c3 DJ+8ZNsfzq14ewv9wo61rfCxQmLAbAqklBdqgkSNa4VasKnWv7MLamg1K3v4cm8GJq6u w0YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=d0l1uxWC; 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 t19si5581386jac.62.2021.09.20.18.50.12; Mon, 20 Sep 2021 18:50:23 -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=d0l1uxWC; 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 S1358043AbhITSFW (ORCPT + 99 others); Mon, 20 Sep 2021 14:05:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:57648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355970AbhITR5z (ORCPT ); Mon, 20 Sep 2021 13:57:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4E4A663210; Mon, 20 Sep 2021 17:14:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158090; bh=uLgFZxX+cwiet4pUq59oiyiXdrCWvxBD5wFY6RaxJxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d0l1uxWC7EGXMRsePQn+1swjj1j5YwfcXzxpm4BBkxszGlE3QXGe5Yrifao+xVPU7 U7MK0PolRUgFjsIrgoZ+sE00CINCsFGZ0vdDs4b6tLDujR8ynNriD/yFyymX/SvLgI XORZS1X+HlM2VlgjNsyp6A341B/Z1SqzcQnxHBRk= 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 4.19 291/293] qlcnic: Remove redundant unlock in qlcnic_pinit_from_rom Date: Mon, 20 Sep 2021 18:44:13 +0200 Message-Id: <20210920163943.389512622@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163933.258815435@linuxfoundation.org> References: <20210920163933.258815435@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