linux/drivers/isdn/hardware/mISDN
Julia Lawall 4101e976e0 drivers/isdn: delete double assignment
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/)

// <smpl>
@@
expression i;
@@

*i = ...;
 i = ...;
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-10-27 12:23:21 -07:00
..
Kconfig isdn: fix netjet/isdnhdlc build errors 2009-09-28 12:47:36 -07:00
Makefile mISDN: Add support for Traverse Technologies NETJet PCI cards 2009-07-25 20:22:36 +02:00
avmfritz.c fix comment/printk typos concerning "already" 2010-07-11 21:45:40 +02:00
hfc_multi.h mISDN: Add XHFC support for embedded Speech-Design board to hfcmulti 2009-05-25 00:55:30 -07:00
hfc_multi_8xx.h mISDN: Add XHFC support for embedded Speech-Design board to hfcmulti 2009-05-25 00:55:30 -07:00
hfc_pci.h mISDN: Add different different timer settings for hfc-pci 2009-01-09 22:44:28 +01:00
hfcmulti.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2010-08-04 15:31:02 -07:00
hfcpci.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2010-08-04 15:31:02 -07:00
hfcsusb.c drivers/isdn/hardware/mISDN: Add missing spin_unlock 2010-05-29 00:18:48 -07:00
hfcsusb.h tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
iohelper.h mISDN: Fix wrong struct name in macro and clarifications 2009-07-27 08:20:55 -07:00
ipac.h mISDN: Fix wrong struct name in macro and clarifications 2009-07-27 08:20:55 -07:00
isar.h mISDN: Fix wrong struct name in macro and clarifications 2009-07-27 08:20:55 -07:00
mISDNinfineon.c drivers/isdn: delete double assignment 2010-10-27 12:23:21 -07:00
mISDNipac.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
mISDNisar.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
netjet.c drivers/isdn/hardware/mISDN: Use GFP_ATOMIC when a lock is held 2010-06-01 00:26:06 -07:00
netjet.h mISDN: Add support for Traverse Technologies NETJet PCI cards 2009-07-25 20:22:36 +02:00
speedfax.c fix comment/printk typos concerning "already" 2010-07-11 21:45:40 +02:00
w6692.c fix comment/printk typos concerning "already" 2010-07-11 21:45:40 +02:00
w6692.h mISDN: Add driver for Winbond cards 2009-07-25 20:21:28 +02:00