[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20101027.122438.191405610.davem@davemloft.net>
Date: Wed, 27 Oct 2010 12:24:38 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: julia@...u.dk
Cc: wharms@....de, isdn@...ux-pingi.de,
kernel-janitors@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 10/14] drivers/isdn: delete double assignment
From: Julia Lawall <julia@...u.dk>
Date: Tue, 26 Oct 2010 14:20:56 +0200 (CEST)
> From: Julia Lawall <julia@...u.dk>
>
> Delete successive assignments to the same location. In the first case, the
> hscx array has two elements, so change the assignment to initialize the
> second one. In the second case, the two assignments are simply identical.
> Furthermore, neither is necessary, because the effect of the assignment is
> only visible in the next line, in the assignment in the if test. The patch
> inlines the right hand side value in the latter assignment and pulls that
> assignment out of the if test.
>
> A simplified version of the semantic match that finds this problem is as
> follows: (http://coccinelle.lip6.fr/)
...
> Signed-off-by: Julia Lawall <julia@...u.dk>
Applied.
--
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