summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKurt Kanzenbach <ly80toro@cip.cs.fau.de>2013-04-04 14:03:14 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-05 21:22:51 (GMT)
commitb2e0228409ac880b2defb51ab9e76b8f8af56ff2 (patch)
tree3257b033d132531023a6f3b234825f63f2b71ad4 /lib
parente71e781ba4f0db19775635443a208ba69d403ad6 (diff)
downloadlinux-fsl-qoriq-b2e0228409ac880b2defb51ab9e76b8f8af56ff2.tar.xz
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions