]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40evf: clean up local variable initialization
authorJean Sacren <sakiwit@gmail.com>
Tue, 13 Oct 2015 07:06:30 +0000 (01:06 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:33:14 +0000 (08:33 -0800)
commit5ac3edff151ae7cb02593d3af7e451a9b432f59d
tree43652017d25d54f9572907822e91ea97a82e9d4d
parent340b20c4a621c7db3ed1b9f1e8fdc729cfcbf8c8
i40evf: clean up local variable initialization

Orabug: 22342532

In i40evf_msix_aq(), the first two lines of rd32() are mainly to clear
the registers. If we initialize 'val' at this point, it will be
overwritten immediately. We shall simply discard the return value here.

When we initialize 'val', we might as well include the mask in one step.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit ed17f7e5d7918adb487debe49fadf57fd2b98d1c)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c