Re: ti: wl18xx: add checks on wl18xx_top_reg_write() return value

From: Gustavo A. R. Silva
Date: Wed Jun 28 2017 - 18:58:06 EST



Quoting Kalle Valo <kvalo@xxxxxxxxxxxxxx>:

"Gustavo A. R. Silva" <garsilva@xxxxxxxxxxxxxx> wrote:

Check return value from call to wl18xx_top_reg_write(),
so in case of error jump to goto label out and return.

Also, remove unnecessary value check before goto label out.

Addresses-Coverity-ID: 1226938
Signed-off-by: Gustavo A. R. Silva <garsilva@xxxxxxxxxxxxxx>

The prefix should be "wl18xx:", I'll fix that.


Thanks, Kalle.
--
Gustavo A. R. Silva