Re: [PATCH] regulator: twl-regulator: Simplify the code matchingregulator id

From: Mark Brown
Date: Tue Apr 10 2012 - 06:06:09 EST


On Mon, Apr 09, 2012 at 10:32:49PM +0800, Axel Lin wrote:
> This patch makes the code easier to read.
>
> Also add checking the case when no desc id is matched. This is required because
> if no desc id is matched, the poiner info is pointed to twl_of_match[i].data
> which may be not NULL. Checking info is NULL or not latter does not catch the
> error.

Applied, thanks.

Attachment: signature.asc
Description: Digital signature