1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/sysutils/nut
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
..
files sysutils/nut: Remove unnecessary validation for bus_num 2023-11-24 08:03:39 -08:00
distinfo
Makefile sysutils/nut: Remove unnecessary validation for bus_num 2023-11-24 08:03:39 -08:00
pkg-descr
pkg-plist sysutils/nut: fix orphans 2023-11-23 07:39:23 -08:00
pkg-post-install