]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Mar 2016 19:48:15 +0000 (15:48 -0400)
commit299768c868d94369d28e87a8f118af553d259df6
treedde35b5bc364514ebe4b6e8623bb54d25a3f9ddd
parent315218dca7f83cf21703933273225a65c83d3e15
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>
drivers/net/ethernet/qlogic/qed/qed_int.c