Messages in this thread | | | Date | Mon, 4 Nov 2013 13:07:31 +0100 | Subject | Re: [PATCH] pinctrl: remove minor dead code | From | Linus Walleij <> |
| |
On Tue, Oct 29, 2013 at 4:50 AM, Michael Opdenacker <michael.opdenacker@free-electrons.com> 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@free-electrons.com>
Pretty cool find!
Patch applied.
Yours, Linus Walleij
| |