The branch main has been updated by np:

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

commit 3b4dcc0feb41120017381681d612d3cc21beb1d7
Author:     Navdeep Parhar <n...@freebsd.org>
AuthorDate: 2024-08-30 00:43:43 +0000
Commit:     Navdeep Parhar <n...@freebsd.org>
CommitDate: 2024-08-30 00:58:36 +0000

    cxgbe/iw_cxgbe: c4iw_connect should return a negative errno.
    
    Avoid a pointless assignment while here.
    
    MFC after:      1 week
    Sponsored by:   Chelsio Communications
---
 sys/dev/cxgbe/iw_cxgbe/cm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/dev/cxgbe/iw_cxgbe/cm.c b/sys/dev/cxgbe/iw_cxgbe/cm.c
index c3d334aa0f62..d8def446d6f0 100644
--- a/sys/dev/cxgbe/iw_cxgbe/cm.c
+++ b/sys/dev/cxgbe/iw_cxgbe/cm.c
@@ -2655,8 +2655,7 @@ int c4iw_connect(struct iw_cm_id *cm_id, struct 
iw_cm_conn_param *conn_param)
 
                CTR2(KTR_IW_CXGBE, "%s:cc7 %p", __func__, ep);
                printk(KERN_ERR MOD "%s - cannot find route.\n", __func__);
-               err = EHOSTUNREACH;
-               return err;
+               return -EHOSTUNREACH;
        }
 
        if (!(if_getcapenable(nh_ifp) & IFCAP_TOE) ||

Reply via email to