]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
MIPS: Octeon: Remove dead code in __cvmx_helper_npi_probe()
authorJason Yan <yanaijie@huawei.com>
Wed, 6 May 2020 13:43:15 +0000 (21:43 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 7 May 2020 08:29:26 +0000 (10:29 +0200)
This code has been marked dead for more than 10 years. Seems no need to
keep it now.

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/cavium-octeon/executive/cvmx-helper-npi.c

index cc94cfa545b49ecd510d4575119f3389bd34ac1c..cb210d2ef0c42433b62c2069db609b9f9f7cd4ff 100644 (file)
@@ -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;
 }