drivers/isdn: eliminate duplicated test
authorJulia Lawall <julia@diku.dk>
Mon, 21 Dec 2009 14:25:32 +0000 (14:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jan 2010 05:25:54 +0000 (21:25 -0800)
commit073bd90f03d98bc3168865f21573c9b232777c13
tree86efa3dbae26d7d0694dccb0103d1f2d19cba860
parent8ffd32083c849dcf476e56e6c5f728c80797ecdd
drivers/isdn: eliminate duplicated test

The code checked slot_rx twice.  Check slot_tx by analogy with the bank
case.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression E;
@@

(
*E && E
|
*E || E
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Karsten Keil <isdn@linux-pingi.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hardware/mISDN/hfcmulti.c