Re: [PATCH] qed: initialize return rc to avoid returning garbage
From: David Miller
Date: Wed Mar 30 2016 - 15:48:48 EST
From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Tue, 29 Mar 2016 18:00:50 +0100
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxx>
Applied, thanks.