Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2652232pxa; Mon, 17 Aug 2020 15:34:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvBYquWZfLfR1P+CUvjCgTT0IA7kLt+Lycl/26mIl00SwXIG+1m4y+NWOiVBVY/d2Ljt0X X-Received: by 2002:a50:a2e6:: with SMTP id 93mr16410440edm.147.1597703647534; Mon, 17 Aug 2020 15:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597703647; cv=none; d=google.com; s=arc-20160816; b=QAPfDV6dzVmFBxdVAXl6yZWsCX0PF6ZJcKADBY1F27hkmcaiV0DlyA6rNHVjzWyjFQ M2/Ogb5IXo9nOlyuq42QAZyCyc9KykOR3vw2Vba2UT5Zx9cRF7LJiPeuhrf/9wvQhbZw I9no66ur7veybrd40TcvYsOuDaEjvsHei0T5aWd/3TlgbO6r4i46/nJCybO/hWcRA2ez lRNSb7uJoawmoJLsSRXL+tYkriqDbBZvaooH9lmOk9Y47mGJ4V+Dn4lz//weIwUbavi/ 63/zYA/rIGuT3PJRPw9fRi2mgHyL+jvkRoURjeejKMjQo6EUIA0iKjNqtq3DjrzWxZ9c tOmg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=559uUKftqEKeBy0uuxjSzPYLoTEWfcywRRAYhbPFIXE=; b=QkDK3s1gYemAmyli75FtDSWxMXAl/hRu8RMh5SUQVx+3QWqRWrINsdIsBTo58PU5ax Fk6vCwPQxdtEwX/id1TkZ4RX8mHnJpbZnBCV3o2VRw4UAHSMffDHKg9c8YsRMEsEERzs yxQszd0AdTEGhs0iUFvWDb0Hj2seGwNaiLv/k1q1k+GV+mz3wLMWNFEeirRvzH6A35cZ 5TgWEKQJXgDeDJ41Z0SaoaZcyvz1RmCteUPSE11UaLx9+5GFaoygkuknDmHQP7OCO4H4 kbJyijS1C3i/52A2pRnm1Sv8MHTH2RNR6aUfbBTEzwFI/iy1Vl1OB2DoJf2pmogmMvX8 0g3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Bxg5987D; 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=fail (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 a19si12404428edn.223.2020.08.17.15.33.32; Mon, 17 Aug 2020 15:34:07 -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=@kernel.org header.s=default header.b=Bxg5987D; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388340AbgHQRB4 (ORCPT + 99 others); Mon, 17 Aug 2020 13:01:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:55676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388435AbgHQQIL (ORCPT ); Mon, 17 Aug 2020 12:08:11 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 61B1022D01; Mon, 17 Aug 2020 16:08:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680485; bh=xG8/kLZ35jqLlqpTwQ2SgV6SH5BSThBWrl/d887Snko=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bxg5987Dv2qTSkXHk4ieOlxbsTDga8qDrqTrcK8Q/Ej9NeyUUk5LuT47oWqmo1Z5q sm9bj3Q8HfVxDHmSkcqemqe6db3IIfJbO2eMvWDWxuEwHFQzAYdspfCRqZqvUELHmh Rlsvo1pF9BXI+tcNseLPAmVOG4Ir4+Ol8uhmmlbU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florinel Iordache , "David S. Miller" , Sasha Levin Subject: [PATCH 5.4 206/270] fsl/fman: fix unreachable code Date: Mon, 17 Aug 2020 17:16:47 +0200 Message-Id: <20200817143806.046192950@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143755.807583758@linuxfoundation.org> References: <20200817143755.807583758@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Florinel Iordache [ Upstream commit cc79fd8f557767de90ff199d3b6fb911df43160a ] The parameter 'priority' is incorrectly forced to zero which ultimately induces logically dead code in the subsequent lines. Fixes: 57ba4c9b56d8 ("fsl/fman: Add FMan MAC support") Signed-off-by: Florinel Iordache Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/freescale/fman/fman_memac.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fman/fman_memac.c b/drivers/net/ethernet/freescale/fman/fman_memac.c index e1901874c19f0..08f8b36779ea4 100644 --- a/drivers/net/ethernet/freescale/fman/fman_memac.c +++ b/drivers/net/ethernet/freescale/fman/fman_memac.c @@ -856,7 +856,6 @@ int memac_set_tx_pause_frames(struct fman_mac *memac, u8 priority, tmp = ioread32be(®s->command_config); tmp &= ~CMD_CFG_PFC_MODE; - priority = 0; iowrite32be(tmp, ®s->command_config); -- 2.25.1