diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-11-30 13:14:15 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-12-02 19:15:02 -0500 |
commit | b19e5f04cd628c012c26a025cf93da5233df134d (patch) | |
tree | a6fb8d53388614b0dc8c3a92f64d9a03897b0e3e /tools/usb/usbip/src | |
parent | e1fd1dc831fa0e1a4c090d0fc018ccce77569236 (diff) |
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>
Diffstat (limited to 'tools/usb/usbip/src')
-rw-r--r-- | tools/usb/usbip/src/usbipd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/usb/usbip/src/usbipd.c b/tools/usb/usbip/src/usbipd.c index 2f87f2d348ba..2a7cd2b8d966 100644 --- a/tools/usb/usbip/src/usbipd.c +++ b/tools/usb/usbip/src/usbipd.c | |||
@@ -91,7 +91,6 @@ static void usbipd_help(void) | |||
91 | static int recv_request_import(int sockfd) | 91 | static int recv_request_import(int sockfd) |
92 | { | 92 | { |
93 | struct op_import_request req; | 93 | struct op_import_request req; |
94 | struct op_common reply; | ||
95 | struct usbip_exported_device *edev; | 94 | struct usbip_exported_device *edev; |
96 | struct usbip_usb_device pdu_udev; | 95 | struct usbip_usb_device pdu_udev; |
97 | struct list_head *i; | 96 | struct list_head *i; |
@@ -100,7 +99,6 @@ static int recv_request_import(int sockfd) | |||
100 | int rc; | 99 | int rc; |
101 | 100 | ||
102 | memset(&req, 0, sizeof(req)); | 101 | memset(&req, 0, sizeof(req)); |
103 | memset(&reply, 0, sizeof(reply)); | ||
104 | 102 | ||
105 | rc = usbip_net_recv(sockfd, &req, sizeof(req)); | 103 | rc = usbip_net_recv(sockfd, &req, sizeof(req)); |
106 | if (rc < 0) { | 104 | if (rc < 0) { |