thunderbolt: Change len from int to size_t in router_prepare_{read,write}()

Suggested by:	ngie
Reviewed by:	ngie
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59668
This commit is contained in:
Aymeric Wibo committed 2026-09-14 17:45:17 +02:00
1 parent 808c82daab
commit 44b73821d1
1 file changed
+4 -4
+4 -4
View File
@@ -64,9 +64,9 @@ static int _tb_router_attach(struct router_softc *);
static void router_prepare_cmd(struct router_softc *, struct router_command *,
size_t, uint16_t);
static void router_prepare_read(struct router_softc *, struct router_command *,
int);
size_t);
static void router_prepare_write(struct router_softc *, struct router_command *,
int);
size_t);
static int _tb_config_read(struct router_softc *, u_int, u_int, u_int, u_int,
uint32_t *, void *, struct router_command **);
static int _tb_config_write(struct router_softc *, u_int, u_int, u_int, u_int,
@@ -639,7 +639,7 @@ router_prepare_cmd(struct router_softc *sc, struct router_command *cmd,
static void
router_prepare_read(struct router_softc *sc, struct router_command *cmd,
int len)
size_t len)
{
router_prepare_cmd(sc, cmd, len, PDF_READ);
@@ -649,7 +649,7 @@ router_prepare_read(struct router_softc *sc, struct router_command *cmd,
static void
router_prepare_write(struct router_softc *sc, struct router_command *cmd,
int len)
size_t len)
{
router_prepare_cmd(sc, cmd, len, PDF_WRITE);