]> git.karo-electronics.de Git - linux-beck.git/commit
staging: unisys: remove unneeded structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 30 Nov 2014 18:14:14 +0000 (19:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2014 00:50:08 +0000 (16:50 -0800)
commitbd0f483c873725148c8a54f58f174507a74c4815
tree1d70e237d82a619dbf70ca3afeaf6f6e65cc4fe3
parent0a005d59c04551bfdcc53b2a71473d603d62d066
staging: unisys: remove unneeded structure

Delete a local structure that is only used to be initialized by memset.

A semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier x,i;
@@

{
... when any
-struct i x;
<+... when != x
- memset(&x,...);
...+>
}
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorchipset/visorchipset_main.c