Commit 4ab0f79b authored by Jacob Keller's avatar Jacob Keller Committed by Jeff Kirsher

fm10k: remove unnecessary else block from if statements with return

Improve code style by removing the unnecessary else block of an if
statement which immediately returns.
Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Tested-by: default avatarKrishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 40423dd2
...@@ -1232,7 +1232,7 @@ s32 fm10k_iov_msg_mac_vlan_pf(struct fm10k_hw *hw, u32 **results, ...@@ -1232,7 +1232,7 @@ s32 fm10k_iov_msg_mac_vlan_pf(struct fm10k_hw *hw, u32 **results,
err = fm10k_iov_select_vid(vf_info, (u16)vid); err = fm10k_iov_select_vid(vf_info, (u16)vid);
if (err < 0) if (err < 0)
return err; return err;
else
vid = err; vid = err;
/* update VSI info for VF in regards to VLAN table */ /* update VSI info for VF in regards to VLAN table */
...@@ -1258,7 +1258,7 @@ s32 fm10k_iov_msg_mac_vlan_pf(struct fm10k_hw *hw, u32 **results, ...@@ -1258,7 +1258,7 @@ s32 fm10k_iov_msg_mac_vlan_pf(struct fm10k_hw *hw, u32 **results,
err = fm10k_iov_select_vid(vf_info, vlan); err = fm10k_iov_select_vid(vf_info, vlan);
if (err < 0) if (err < 0)
return err; return err;
else
vlan = (u16)err; vlan = (u16)err;
/* notify switch of request for new unicast address */ /* notify switch of request for new unicast address */
...@@ -1284,7 +1284,7 @@ s32 fm10k_iov_msg_mac_vlan_pf(struct fm10k_hw *hw, u32 **results, ...@@ -1284,7 +1284,7 @@ s32 fm10k_iov_msg_mac_vlan_pf(struct fm10k_hw *hw, u32 **results,
err = fm10k_iov_select_vid(vf_info, vlan); err = fm10k_iov_select_vid(vf_info, vlan);
if (err < 0) if (err < 0)
return err; return err;
else
vlan = (u16)err; vlan = (u16)err;
/* notify switch of request for new multicast address */ /* notify switch of request for new multicast address */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment