]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: fix smatch splat due to missing NULL check
authorJohn Fastabend <john.r.fastabend@intel.com>
Sat, 15 Oct 2011 05:00:10 +0000 (05:00 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:23:23 +0000 (22:23 +0800)
commit7d513ebdf59777aa3b6e2911eea482c950eb7aa8
treec2ccb1393972b21755128cb7f8a814c71c11fdc3
parentf6f7ffaa83e0b6e0df5085292201812f8a0f292d
ixgbe: fix smatch splat due to missing NULL check

ixgbe_ieee_ets and ixgbe_ieee_pfc are intialized at
the same time. Do a check for both before configuring
IEEE802.1Qaz. Also max_frame was causing a sparse
warning resolved here as well.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
(cherry picked from commit b120818e652965669d3f1abaeaa5c3ccdfb28126)
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_main.c