diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-12 14:56:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-12 14:56:41 +0200 |
commit | e00e96afd742cc090cbfbad3a6af58ce1e6efafb (patch) | |
tree | d34225caa0022e284308d6e2564479717575d859 | |
parent | e24294ff9ade6dafcd1909763e888d97b377c841 (diff) | |
download | usbutils-e00e96afd742cc090cbfbad3a6af58ce1e6efafb.tar.gz |
lsusb -t: assign_interface_to_parent() fixups
It was pointed out that assign_interface_to_parent() was looking at the
wrong string for the string check, so fix that up.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | lsusb-t.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -555,7 +555,7 @@ static void assign_interface_to_parent(struct usbdevice *d, struct usbinterface } else { busnum = strtoul(name, &pn, 10); if (pn && pn != name) { - if (p[1] == '0') + if (pn[1] == '0') append_businterface(busnum, i); } } |