Re: [PATCH] pinctrl: remove redundant pin < 0 check on unsigned int
From: Linus Walleij
Date: Wed Jan 18 2017 - 04:25:22 EST
On Fri, Jan 13, 2017 at 2:20 PM, Colin King <colin.king@xxxxxxxxxxxxx> wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> pin is an unsigned int and therefore can never be < 0 so
> this check is redudant. Remove the check and the associated
> dev_err error message.
>
> Fixes CoverityScan CID#1396438 ("Unsigned compared against 0")
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Fixed up speling & commit topic and applied with
Nishanth's ACK!
Yours,
Linus Walleij