git: e79f6aa3e5e1 - main - ath: return error code of HAL_STATUS type

Gleb Smirnoff <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src,gmane.os.freebsd.current.scm
Message-ID <[email protected]>
The branch main has been updated by glebius:

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

commit e79f6aa3e5e122a56875c472fb08c8db1db26e46
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2026-08-07 20:34:41 +0000
Commit:     Gleb Smirnoff <[email protected]>
CommitDate: 2026-08-07 22:16:04 +0000

    ath: return error code of HAL_STATUS type
    
    Found with:     clang -Werror=assign-enum
---
 sys/contrib/dev/ath/ath_hal/ar9300/ar9300_paprd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_paprd.c b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_paprd.c
index d3ddf4a6121b..ea9788e8739d 100644
--- a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_paprd.c
+++ b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_paprd.c
@@ -2208,7 +2208,7 @@ HAL_STATUS ar9300_paprd_create_curve(struct ath_hal * ah,
         if (status != 0) {
             ath_hal_printf(ah, "ERROR:: paprd failed with error code = %d\n",
                 status);
-            return -1;
+            return HAL_EINVAL;
         }
         AH9300(ah)->small_signal_gain[chain_num] = small_signal_gain;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.