[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <h37j27-hgu.ln1@chipmunk.wormnet.eu>
Date: Wed, 20 Jan 2010 11:47:29 +0000
From: Alexander Clouter <alex@...riz.org.uk>
To: linux-kernel@...r.kernel.org
Cc: linux-mips@...ux-mips.org
Subject: Re: [PATCH] MIPS: cleanup switches with cases that can be merged
In gmane.linux.ports.mips.general David Daney <ddaney@...iumnetworks.com> wrote:
>
> [snipped]
>
> This brings us to the larger question: This is just code churn. Is it
> even worthwhile?
>
Anything which reduces the line count and remove duplication whilst
sticking to CodingStyle I would always argue for, but "who am I" :)
It at a glance, this type of code churn, shows there are no differences
between two classes of <whatever> and the effect is it makes the chunk
of code a mental NOOP for the person reading the code. :)
To me this is a natural extension of running with Chapter 14 of
CodingStyle where you kmalloc using 'sizeof(*p)' rather than
'sizeof(struct *foo)' so reducing the chance of errors later on.
Just my thoughts.
Cheers
--
Alexander Clouter
.sigmonster says: Snoopy: No problem is so big that it can't be run away from.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists