linux-sg2042/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
..
Kconfig iwmc3200top: Add Intel Wireless MultiCom 3200 top driver. 2009-10-19 23:22:50 -07:00
Makefile iwmc3200top: Add Intel Wireless MultiCom 3200 top driver. 2009-10-19 23:22:50 -07:00
debugfs.c iwmc3200top: Add Intel Wireless MultiCom 3200 top driver. 2009-10-19 23:22:50 -07:00
debugfs.h iwmc3200top: Add Intel Wireless MultiCom 3200 top driver. 2009-10-19 23:22:50 -07:00
fw-download.c iwmc3200top: simplify imwct_tx 2009-12-23 14:13:32 -08:00
fw-msg.h iwmc3200top: Add Intel Wireless MultiCom 3200 top driver. 2009-10-19 23:22:50 -07:00
iwmc3200top.h iwmc3200top: simplify imwct_tx 2009-12-23 14:13:32 -08:00
log.c iwmc3200top: Add Intel Wireless MultiCom 3200 top driver. 2009-10-19 23:22:50 -07:00
log.h iwmc3200top: cleanup log messages 2009-12-23 14:13:31 -08:00
main.c drivers/misc/iwmc3200top/main.c: eliminate useless code 2010-03-06 11:26:32 -08:00