diff options
author | Stefan Eichenberger <stefan.eichenberger@toradex.com> | 2025-02-19 09:36:44 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-03 10:23:19 +0100 |
commit | e4b5f415391a56ec6c5f2158bf25d1d3e7936ccc (patch) | |
tree | c6ccffed5969930371f77f2d710304c3cbc19624 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | c749f058b4371430a8338e1ca72b9ae38fef613b (diff) |
usb: core: replace usb_sndaddr0pipe macro with usb_sndctrlpipe
The usb_sndaddr0pipe macro is only used in the hub_set_address function.
Replace it with usb_sndctrlpipe which provides the same functionality
but would also consider the endpoint device number.
If the device has not been initialised, it is safe to use
usb_sndctrlpipe in this context because udev->devnum is set to 0.
Therefore, this change does not affect behaviour, but reduces code
complexity by reusing the existing macro.
Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20250219083745.10406-1-eichest@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions