]> git.baikalelectronics.ru Git - kernel.git/commit
usbip: remove unneeded structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 30 Nov 2014 18:14:15 +0000 (19:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2014 00:15:02 +0000 (16:15 -0800)
commit0fa6534fbfb1e6e0e8cb26cffb5927c715cc172d
treea6fb8d53388614b0dc8c3a92f64d9a03897b0e3e
parente3696b9bb27aed7b67222ed1729f75a0a7a1e705
usbip: 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>
Acked-by: Valentina Manea <valentina.manea.m@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/usb/usbip/src/usbipd.c