Xin LI 8d2996f519 sysutils/nut: Remove unnecessary validation for bus_num
The libusb_get_bus_number() function serves as a simple accessor for
the bus number of the opaque device struct. Unlike
libusb_get_port_number(), it does not have the ability to convey
errors back to the caller, and a bus number of 0 is a valid value.
Therefore, any validation around bus_num is redundant.

This commit removes the unnecessary validation code related to bus_num.

Signed-off-by: Xin LI <delphij@FreeBSD.org>

PR:			275293
Upstream commit:	4aeb199eb
Upstream Pull Request:	https://github.com/networkupstools/nut/pull/2198/
2023-11-24 08:03:39 -08:00
..
2023-11-14 12:08:14 -08:00
2023-11-23 07:39:23 -08:00