OpenCloudOS-Kernel/drivers/isdn/mISDN
Julia Lawall f7df0b8d92 drivers/isdn: Adjust confusing if indentation
In hisax/hfc_sx.c and mISDN/l1oip_core.c, the code after the if is
outdented so that it is not aligned with the if branch.

In mISDN/dsp_cmx.c, an else is added between the original if branch and the
following statement, in line with the code following it.  Without this
change, the first assignment to dsp->rx_W has no useful effect.

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

// <smpl>
@r disable braces4@
position p1,p2;
statement S1,S2;
@@

(
if (...) { ... }
|
if (...) S1@p1 S2@p2
)

@script:python@
p1 << r.p1;
p2 << r.p2;
@@

if (p1[0].column == p2[0].column):
  cocci.print_main("branch",p1)
  cocci.print_secs("after",p2)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-08-16 21:06:30 -07:00
..
Kconfig trivial: fix typos/grammar errors in Kconfig texts 2009-03-30 15:22:01 +02:00
Makefile mISDN: Add ISDN sample clock API to mISDN core 2009-01-09 22:44:27 +01:00
clock.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
core.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
core.h mISDN: Add ISDN sample clock API to mISDN core 2009-01-09 22:44:27 +01:00
dsp.h mISDN: Fix DTMF detection enable/disable 2009-05-25 00:55:47 -07:00
dsp_audio.c mISDN: Cleanup debug messages 2009-05-25 00:55:45 -07:00
dsp_biquad.h Add mISDN DSP 2008-07-27 01:56:38 +02:00
dsp_blowfish.c Add mISDN DSP 2008-07-27 01:56:38 +02:00
dsp_cmx.c drivers/isdn: Adjust confusing if indentation 2010-08-16 21:06:30 -07:00
dsp_core.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
dsp_dtmf.c mISDN: Fix DTMF detection enable/disable 2009-05-25 00:55:47 -07:00
dsp_ecdis.h mISDN: Cleanup debug messages 2009-05-25 00:55:45 -07:00
dsp_hwec.c drivers/isdn/mISDN: use ARRAY_SIZE 2008-12-03 20:59:57 -08:00
dsp_hwec.h Add mISDN DSP 2008-07-27 01:56:38 +02:00
dsp_pipeline.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
dsp_tones.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
fsm.c
fsm.h
hwchannel.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
l1oip.h mISDN: Use kernel_{send,recv}msg instead of open coding 2009-05-25 00:55:46 -07:00
l1oip_codec.c mISDN: DSP now uses ring buffer for echo canceler 2009-05-25 00:51:30 -07:00
l1oip_core.c drivers/isdn: Adjust confusing if indentation 2010-08-16 21:06:30 -07:00
layer1.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
layer1.h
layer2.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
layer2.h mISDN: Fix TEI and SAPI handling 2009-05-25 00:51:35 -07:00
socket.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
stack.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
tei.c fix comment/printk typos concerning "already" 2010-07-11 21:45:40 +02:00
timerdev.c isdn: autoconvert trivial BKL users to private mutex 2010-07-12 20:21:47 -07:00