提交 81ad807b 编写于 作者: C Carolyn Wyborny 提交者: Jeff Kirsher

igb: Cleanups to fix assignment in if error

This patch fixes ERROR:ASSIGN_IN_IF found with checkpatch file check.
Signed-off-by: NCarolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: NAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 e52c0f96
...@@ -4056,7 +4056,8 @@ static void igb_check_wvbr(struct igb_adapter *adapter) ...@@ -4056,7 +4056,8 @@ static void igb_check_wvbr(struct igb_adapter *adapter)
switch (hw->mac.type) { switch (hw->mac.type) {
case e1000_82576: case e1000_82576:
case e1000_i350: case e1000_i350:
if (!(wvbr = rd32(E1000_WVBR))) wvbr = rd32(E1000_WVBR);
if (!wvbr)
return; return;
break; break;
default: default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册