Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2560385lkm; Mon, 20 Sep 2021 18:44:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXRKxcwdvtfcAcjBdRFXFY+qsj8bwr3Whf04YFZUbI4eTa/yztQ/uWfvsLDRMaT8bNOZtX X-Received: by 2002:a5d:9283:: with SMTP id s3mr8491932iom.75.1632188581310; Mon, 20 Sep 2021 18:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188581; cv=none; d=google.com; s=arc-20160816; b=EPpVM/71/toeJPOvfd4f3p486V0k4F0VuvLlgKJEJhW5XFFyr4DY+1sGiiTfaIGtL2 mtpGE7CM4fBdfJEYkdFw1TkfdKuqm3N2uCrgklXMqtPGGT5Mk9Tcm4Ta6IFxUhA+lMAk rtG6qk8Qkefrurkp0u/3o/5dD5sFl8sDQvE1xg7dXlrK3yBMo7GVIBJWKOI3SNf1Ak2e qZqAKhOGECknc0NEHlPholYhISPx36VtnI3cvW2+1skib7xKiH5+usByKdGIanl+45LJ B7XVIUGUKl0BMTxeX/IeyF10fQRYYBT4MO1H9P7Fr2eADX4nHtpjsmmHm4dx5bzXZYtv AGHg== 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=JuqIwDzjyhYjbmz4yAxjNpsm28GCCgz3jFCWG601BUQ=; b=AwlcT1Sb3G+A4XtWQlmk8h4UXlWDZMeGtTa2Ryz9+87qvxOHUDdgEDB/go/7O6dUv4 SxKQ2+XCtRcWOO8eF6cdIyFpUk0oLh4F9KgkODvi9gAz6Y8kY5IYD+kSXyFl74vi0Lof +5541fuBe4CD34vgFUX78KQVLoQhirJKVX/kzCUasQ/FshwNmlBf1efN9Y31lUPXpzA2 iFD5+mNbYHddFS0+EPkyN1M+zfIG9s0HRMbLMLT4lwyMyOiwJEdw+IFokb8nc0eefiHl qjayWdnWrZ2NWliI6z3lX0kjb2vEKz5E6gf5j+12d0CUlcQH5j5ea4Au5FGf2uhbFcWU fp0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tYCUAkki; 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 i3si5036074ila.152.2021.09.20.18.42.49; Mon, 20 Sep 2021 18:43:01 -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=tYCUAkki; 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 S1343777AbhITQ4r (ORCPT + 99 others); Mon, 20 Sep 2021 12:56:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:38506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237965AbhITQxR (ORCPT ); Mon, 20 Sep 2021 12:53:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ADDB361360; Mon, 20 Sep 2021 16:50:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632156613; bh=ojhhNTi73cRz3Z0Hdttpvn/1HdiWvPSVdbMFNNj3LkU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tYCUAkki9/Nf7TrhIWL5yJ7NpCCDUc+MuVLkjsDDhLwKq8qxfkUqKPRQI+y08LV/v c+tV6kjJRjUolVFqZhXGmHVztaULWfjfwJSyoA9OXO78JFJs0WTwaQo+WzOoCc2s/t KzKepK4j2e9JMkr14j0oBrRvy17ExQALzvhJctXE= 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.4 132/133] qlcnic: Remove redundant unlock in qlcnic_pinit_from_rom Date: Mon, 20 Sep 2021 18:43:30 +0200 Message-Id: <20210920163916.940456425@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163912.603434365@linuxfoundation.org> References: <20210920163912.603434365@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 be41e4c77b65..eff587c6e9be 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