Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4bd145be authored by Jeff Kirsher's avatar Jeff Kirsher
Browse files

i40e/i40evf: Convert macro to static inline



Inline functions are preferred over macros when they can be used
interchangeably.

CC: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reported-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent e51d9b8f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -481,7 +481,10 @@ struct i40e_hw {
	u32 debug_mask;
};

#define i40e_is_vf(_hw)	((_hw)->mac.type == I40E_MAC_VF)
static inline bool i40e_is_vf(struct i40e_hw *hw)
{
	return hw->mac.type == I40E_MAC_VF;
}

struct i40e_driver_version {
	u8 major_version;
+4 −1
Original line number Diff line number Diff line
@@ -475,7 +475,10 @@ struct i40e_hw {
	u32 debug_mask;
};

#define i40e_is_vf(_hw)	((_hw)->mac.type == I40E_MAC_VF)
static inline bool i40e_is_vf(struct i40e_hw *hw)
{
	return hw->mac.type == I40E_MAC_VF;
}

struct i40e_driver_version {
	u8 major_version;