Re: [PATCH v2] regulator: Fix _regulator_get_voltage if get_voltagecallback is NULL

From: Mark Brown
Date: Fri May 20 2011 - 06:23:05 EST

On Fri, May 20, 2011 at 08:36:06AM +0800, Axel Lin wrote:

> - return ret - rdev->constraints->uV_offset;
> + return ret < 0 ? ret : ret - rdev->constraints->uV_offset;

Please don't use the ternery operator, I find it does nothing for
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at