On Tue, May 6, 2014 at 10:16 PM, Bjorn Andersson
<bjorn.anders...@sonymobile.com> wrote:
[...]
> +static int fdt_overrides_atag_mem(void *fdt)
> +{
> +       const char *memory;
> +       int len = 0;
> +
> +       memory = getprop(fdt, "/memory", "reg", &len);
> +       if (memory) {
> +               while (len--) {
> +                       if (*memory != '\0')

Sorry, this is of course supposed to be:
                       if (*memory++ != '\0')

> +                               return 1;
> +               }
> +       }
> +
> +       return 0;
> +}

Regards,
Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to