ice: remove unnecessary &array[0] and just use array
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 22 Feb 2023 17:09:16 +0000 (09:09 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 13 Mar 2023 18:06:06 +0000 (11:06 -0700)
In ice_is_malicious_vf we print the VF MAC address using %pM by passing the
address of the first element of vf->dev_lan_addr. This is equivalent to
just passing vf->dev_lan_addr, so do that.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Marek Szlosek <marek.szlosek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_sriov.c

index 185673afb7819c6f943457b502539c999690c6da..938be486721ec47042ebb1e4892197ea598a5633 100644 (file)
@@ -1820,7 +1820,7 @@ ice_is_malicious_vf(struct ice_pf *pf, struct ice_rq_event_info *event,
                u8 zero_addr[ETH_ALEN] = {};
 
                dev_warn(dev, "VF MAC %pM on PF MAC %pM is generating asynchronous messages and may be overflowing the PF message queue. Please see the Adapter User Guide for more information\n",
-                        &vf->dev_lan_addr[0],
+                        vf->dev_lan_addr,
                         pf_vsi ? pf_vsi->netdev->dev_addr : zero_addr);
        }