Messages in this thread | | | From | Linus Walleij <> | Date | Thu, 12 Jan 2017 00:11:37 +0100 | Subject | Re: [PATCH] iio: magnetometer: ak8974: remove redundant zero timeout check |
| |
On Wed, Jan 11, 2017 at 6:49 PM, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com> > > At the end of the delay loop timeout will always be zero > and hence the check for !timeout will always be true. Remove > the redundant check and the redundant return 0 at the end of > the function. > > Fixes CoverityScan CID#1357168 ("Logically dead code") > > Signed-off-by: Colin Ian King <colin.king@canonical.com>
Clever Coverity scan. Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours, Linus Walleij
| |