[PATCH] ASoC: Samsung: I2S: fix return value check in i2s_alloc_dai()

Mark Brown broonie at kernel.org
Fri Oct 25 05:26:30 EDT 2013


On Fri, Oct 25, 2013 at 05:06:24PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
> 
> In case of error, the function platform_device_alloc() returns NULL
> pointer not ERR_PTR(). The IS_ERR() test in the return value check
> should be replaced with NULL test.

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131025/56021175/attachment.sig>


More information about the linux-arm-kernel mailing list