Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1862010ybj; Wed, 6 May 2020 06:46:43 -0700 (PDT) X-Google-Smtp-Source: APiQypIKuXPwO5x/xCaioYFfuC8cZ2uP4cPoz4+fnUcbUOmdiZ2MGWfupL0bJMQPYhvcSadMp2T+ X-Received: by 2002:a17:906:adb:: with SMTP id z27mr7415516ejf.263.1588772803050; Wed, 06 May 2020 06:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588772803; cv=none; d=google.com; s=arc-20160816; b=A7Pu8X0kcrqV91gxVqNiomQP9PpuFieGhcsVE9Ber0cXU3lM+li4nUi4waDPAiWpQq ebVmCjLMT4i52UqOD2VOGzLiihYbf3WhOvsFCCZb2YDW9PIlWczMawCJbc4HzGimDFtb ETevn7VS3Ggn+rLnfEw9TD6DpFAEy8J/zsANo7nKXnQUDPaUZklN8RZkdCpJOLyqaWW4 BT2a5oohnxPEyWXsNyFfgjUMJZgtc/M/pbz10zTUthfJbldWt4uATx9o0oM6lkHy0sUH jYAXAOsZtheZfQAhZJewn0OaxgAAg00BAoUNsFDgX10p5MkWYcLI89W+UFRFhKm6TrOi plUA== 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 :message-id:date:subject:to:from; bh=opeTnxPwGSv/ESIXV7BVhUGHcmTDZDz+JObXFcgNNdY=; b=WmkfJrQUmBWsXFtb4MHAcYGGBaDpArSEcO0G9GOd/s59LUxLhwfcFz8h0v1LDhTPN8 sUmjijYELkbEar2axYO+KtSKksfpqRsbdzetFoncvcLXmb7Yvku+N8otbxSttTjYoL+i 6qVlZ6uLi4rLzpXuTxm0GFfoALR37uoJwXqNp6rxyjeoqZgbUbD52kyhv64Cmy9nLDy+ ozduWOg6L2OeiYKorJm1jiXZF6XLRtktuz7BwIJRsLh5hXdVgZ43cjqvUtQLLI6+6i0j /B4gh5YDrF/hfpMiBQ7DMAAo4tL8l9rRfEp+F9Zp1SbdKAEibuejveNoIv4i25GCzUPG Vm2w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox27si1190294ejb.128.2020.05.06.06.46.18; Wed, 06 May 2020 06:46:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728819AbgEFNoF (ORCPT + 99 others); Wed, 6 May 2020 09:44:05 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:48494 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726218AbgEFNoF (ORCPT ); Wed, 6 May 2020 09:44:05 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 060CB89C0AE97CCD2E89; Wed, 6 May 2020 21:44:03 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Wed, 6 May 2020 21:43:53 +0800 From: Jason Yan To: , , , Subject: [PATCH] MIPS: Octeon: Remove dead code in __cvmx_helper_npi_probe() Date: Wed, 6 May 2020 21:43:15 +0800 Message-ID: <20200506134315.32810-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This code has been marked dead for more than 10 years. Seems no need to keep it now. Signed-off-by: Jason Yan --- arch/mips/cavium-octeon/executive/cvmx-helper-npi.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-npi.c b/arch/mips/cavium-octeon/executive/cvmx-helper-npi.c index cc94cfa545b4..cb210d2ef0c4 100644 --- a/arch/mips/cavium-octeon/executive/cvmx-helper-npi.c +++ b/arch/mips/cavium-octeon/executive/cvmx-helper-npi.c @@ -59,18 +59,6 @@ int __cvmx_helper_npi_probe(int interface) && !OCTEON_IS_MODEL(OCTEON_CN52XX_PASS1_X)) /* The packet engines didn't exist before pass 2 */ return 4; -#if 0 - /* - * Technically CN30XX, CN31XX, and CN50XX contain packet - * engines, but nobody ever uses them. Since this is the case, - * we disable them here. - */ - else if (OCTEON_IS_MODEL(OCTEON_CN31XX) - || OCTEON_IS_MODEL(OCTEON_CN50XX)) - return 2; - else if (OCTEON_IS_MODEL(OCTEON_CN30XX)) - return 1; -#endif #endif return 0; } -- 2.21.1