Hello,

> Regulator framework core :-

[ ... snip ... ]

> +void regulator_put(struct regulator *regulator)
> +{
> +     struct regulator_cdev *rcdev = regulator->rcdev;
> +
> +     if (regulator == NULL || IS_ERR(regulator))
> +             return;

Check after use.

Regards,

        Mariusz
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
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