Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Aug 2026 21:13:32 +0000
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9d765453b0a9 - main - urtw: return error of usb_error_t
Message-ID:  <6a764a7c.210a5.1740ca8@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=9d765453b0a93f2ec4ca2b91c3a20ec909bd3b6d

commit 9d765453b0a93f2ec4ca2b91c3a20ec909bd3b6d
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2026-08-07 17:51:34 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2026-08-07 21:13:26 +0000

    urtw: return error of usb_error_t
    
    Found with:     clang -Werror=assign-enum
---
 sys/dev/usb/wlan/if_urtw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/usb/wlan/if_urtw.c b/sys/dev/usb/wlan/if_urtw.c
index 86cf4c653ae7..17dc19bcab67 100644
--- a/sys/dev/usb/wlan/if_urtw.c
+++ b/sys/dev/usb/wlan/if_urtw.c
@@ -2757,7 +2757,7 @@ urtw_8225_rf_set_sens(struct urtw_softc *sc, int sens)
 	usb_error_t error;
 
 	if (sens < 0 || sens > 6)
-		return -1;
+		return USB_ERR_INVAL;
 
 	if (sens > 4)
 		urtw_8225_write(sc,


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a764a7c.210a5.1740ca8>