From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 20 Jan 2010 03:03:11 +0100 (CET) Received: from mail3.caviumnetworks.com ([12.108.191.235]:15862 "EHLO mail3.caviumnetworks.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1492589Ab0ATCDI (ORCPT ); Wed, 20 Jan 2010 03:03:08 +0100 Received: from caexch01.caveonetworks.com (Not Verified[192.168.16.9]) by mail3.caviumnetworks.com with MailMarshal (v6,7,2,8378) id ; Tue, 19 Jan 2010 18:03:11 -0800 Received: from caexch01.caveonetworks.com ([192.168.16.9]) by caexch01.caveonetworks.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 19 Jan 2010 18:02:07 -0800 Received: from dd1.caveonetworks.com ([12.108.191.236]) by caexch01.caveonetworks.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 19 Jan 2010 18:02:07 -0800 Message-ID: <4B56641E.1030803@caviumnetworks.com> Date: Tue, 19 Jan 2010 18:02:06 -0800 From: David Daney User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Roel Kluin CC: Ralf Baechle , linux-mips@linux-mips.org, Andrew Morton , LKML Subject: Re: [PATCH] MIPS: cleanup switches with cases that can be merged References: <4B56475F.8070608@gmail.com> In-Reply-To: <4B56475F.8070608@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 Jan 2010 02:02:07.0189 (UTC) FILETIME=[919F9050:01CA9974] X-archive-position: 25617 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ddaney@caviumnetworks.com Precedence: bulk X-list: linux-mips Return-Path: X-Keywords: X-UID: 12944 Roel Kluin wrote: > I did a search for switch statements with cases that can be merged, but maybe > some were not intended? > ---------------->8------------------------------------------8<----------------- > In these cases the same code was executed. > > Signed-off-by: Roel Kluin > --- > arch/mips/include/asm/octeon/octeon-feature.h | 8 ++------ > arch/mips/kernel/cpu-probe.c | 3 --- > arch/mips/math-emu/ieee754dp.c | 1 - > arch/mips/math-emu/ieee754sp.c | 1 - > arch/mips/pci/pci-octeon.c | 6 ++---- > arch/mips/powertv/asic/asic_devices.c | 4 ---- > arch/mips/sgi-ip32/ip32-irq.c | 9 +-------- > 7 files changed, 5 insertions(+), 27 deletions(-) This patch should be split up. Octeon, PowerTV, and IP32 are all different architectures. They should be in their own patches. The two math-emu parts could probably go together. cpu-probe seems like its own thing. This brings us to the larger question: This is just code churn. Is it even worthwhile? David Daney