android_kernel_xiaomi_sm8350/drivers/misc/iwmc3200top
Julia Lawall 08d9e7363b drivers/misc/iwmc3200top/main.c: eliminate useless code
The variable priv is initialized twice to the same (side effect-free)
expression.  Drop one initialization.

A simplified version of the semantic match that finds this problem is:
(http://coccinelle.lip6.fr/)

// <smpl>
@forall@
idexpression *x;
identifier f!=ERR_PTR;
@@

x = f(...)
... when != x
(
x = f(...,<+...x...+>,...)
|
* x = f(...)
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-03-06 11:26:32 -08:00
..
debugfs.c
debugfs.h
fw-download.c iwmc3200top: simplify imwct_tx 2009-12-23 14:13:32 -08:00
fw-msg.h
iwmc3200top.h iwmc3200top: simplify imwct_tx 2009-12-23 14:13:32 -08:00
Kconfig
log.c iwmc3200top: Add Intel Wireless MultiCom 3200 top driver. 2009-10-19 23:22:50 -07:00
log.h
main.c drivers/misc/iwmc3200top/main.c: eliminate useless code 2010-03-06 11:26:32 -08:00
Makefile