]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: initialize return rc to avoid returning garbage
authorColin Ian King <colin.king@canonical.com>
Tue, 29 Mar 2016 17:00:50 +0000 (18:00 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 19:29:21 +0000 (12:29 -0700)
commit2f95cdec21fea7d05777764888f16888400ed20c
tree9d307a040bc929e0a18e09b7a6c8dc522ed2d4f1
parent005361f5ebb756f989bfe4cd3cb0f00975ae11fb
qed: initialize return rc to avoid returning garbage

in the case where qed_slowpath_irq_req is not called, rc is not
assigned and so qed_int_igu_enable will return a garbage value.
Fix this by initializing rc to 0.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Orabug: 23732603
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_int.c