[PATCH v3] pinctrl/pinconfig: add debug interface

Linus Walleij linus.walleij at linaro.org
Fri Apr 19 09:47:48 EDT 2013


On Thu, Apr 18, 2013 at 12:52 PM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> On Thu, Apr 18, 2013 at 12:35:14PM +0200, Linus Walleij wrote:
>> +             if (map->type != dbg->map_type)
>> +                     continue;
>> +             if (!!strcmp(map->dev_name, dbg->dev_name))
>
> !! is pointless in this context - if() evaluates any non-zero value as
> true, so there's no point making the code more complicated by trying to
> convert it to a false/true value first.

I fixed this up and applied it since there are no further comments.

Thanks!
Linus Walleij



More information about the linux-arm-kernel mailing list