Re: [PATCH] pinctrl: remove minor dead code
From: Linus Walleij
Date: Mon Nov 04 2013 - 07:07:36 EST
On Tue, Oct 29, 2013 at 4:50 AM, Michael Opdenacker
<michael.opdenacker@xxxxxxxxxxxxxxxxxx> wrote:
> This removes a test whether the 'desc' variable is NULL.
> This possibility has already been eliminated by the
> below test earlier in the loop:
>
> if (desc == NULL) {
> dev_warn(pctldev->dev,
> "could not get pin desc for pin %d\n",
> pins[i]);
> continue;
> }
>
> Found with Coverity: CID #1090078
>
> Signed-off-by: Michael Opdenacker <michael.opdenacker@xxxxxxxxxxxxxxxxxx>
Pretty cool find!
Patch applied.
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/