linux/drivers/staging/usbip
Kurt Kanzenbach b2e0228409 staging: usbip: userspace: libsrc: cleanup parsing
Since the names.c/names.h are taken from another project, some
functions which names.c provides aren't used by usbipd.
This patch fixes:
 - removed useless comments
 - unified debug/error messages by using the macros
   provided by usbip_common.h
 - removed unnused code

The code cleanup includes:
 - remove unused data structures
 - remove code to create them
 - remove code to access them

The file names.c is used to parse the `usb.ids' file. The parser
stores a lot of information about usb devices that is never used.

The `usb.ids' file has several sections. Some variables (like
`lasthut') store the ID of the current section, and those variables
are used to decide which section is currently being parsed (i.e. in
which data structure the current line will be  stored).

We removed the code to read those IDs because they are never used
anyway. We replaced them by the pseudo-ID `1' (instead of reading the
ID from the file) to indicate that the parser is in a section that
can be ignored. If the parser is in such a section, the current line
(which contains sub-items for this section) is discarded.

Signed-off-by: Kurt Kanzenbach <ly80toro@cip.cs.fau.de>
Signed-off-by: Stefan Reif <ke42caxa@cip.cs.fau.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-04-05 14:22:51 -07:00
..
userspace staging: usbip: userspace: libsrc: cleanup parsing 2013-04-05 14:22:51 -07:00
Kconfig
Makefile
README
stub_dev.c staging: usbip: simplified cleanup function 2013-04-05 14:22:51 -07:00
stub_main.c staging: usbip: removed unnecessary for loop 2013-04-05 14:22:51 -07:00
stub_rx.c staging: usbip: removed enumeration of comments 2013-04-05 14:22:50 -07:00
stub_tx.c
stub.h
usbip_common.c staging: usbip: simple indent fix 2013-04-05 14:22:50 -07:00
usbip_common.h
usbip_event.c
usbip_protocol.txt
vhci_hcd.c staging: usbip: remove unnecessary braces 2013-03-11 09:45:29 -07:00
vhci_rx.c staging: usbip: removed enumeration of comments 2013-04-05 14:22:50 -07:00
vhci_sysfs.c
vhci_tx.c
vhci.h staging: usbip: remove unnused, broken macro 2013-04-05 14:22:50 -07:00

TODO:
	- more discussion about the protocol
	- testing
	- review of the userspace interface
	- document the protocol

Please send patches for this code to Greg Kroah-Hartman <greg@kroah.com>