]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
idpf: update idpf_up_complete() return type to void
authorSreedevi Joshi <sreedevi.joshi@intel.com>
Wed, 26 Nov 2025 17:02:16 +0000 (11:02 -0600)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 9 Jan 2026 17:25:17 +0000 (09:25 -0800)
idpf_up_complete() function always returns 0 and no callers use this return
value. Although idpf_vport_open() checks the return value, it only handles
error cases which never occur. Change the return type to void to simplify
the code.

Signed-off-by: Sreedevi Joshi <sreedevi.joshi@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/idpf/idpf_lib.c

index 131a8121839bd0ff2c7dd5141735823ab2437723..f5a1ede23dbf3dd0cf11c7ddbbca2863dccff24a 100644 (file)
@@ -1429,10 +1429,8 @@ static int idpf_set_real_num_queues(struct idpf_vport *vport)
 /**
  * idpf_up_complete - Complete interface up sequence
  * @vport: virtual port structure
- *
- * Returns 0 on success, negative on failure.
  */
-static int idpf_up_complete(struct idpf_vport *vport)
+static void idpf_up_complete(struct idpf_vport *vport)
 {
        struct idpf_netdev_priv *np = netdev_priv(vport->netdev);
 
@@ -1442,8 +1440,6 @@ static int idpf_up_complete(struct idpf_vport *vport)
        }
 
        set_bit(IDPF_VPORT_UP, np->state);
-
-       return 0;
 }
 
 /**
@@ -1584,12 +1580,7 @@ static int idpf_vport_open(struct idpf_vport *vport, bool rtnl)
                goto disable_vport;
        }
 
-       err = idpf_up_complete(vport);
-       if (err) {
-               dev_err(&adapter->pdev->dev, "Failed to complete interface up for vport %u: %d\n",
-                       vport->vport_id, err);
-               goto disable_vport;
-       }
+       idpf_up_complete(vport);
 
        if (rtnl)
                rtnl_unlock();