[PATCH -next] ASoC: sun4i-i2s: Use PTR_ERR_OR_ZERO() to simplify code

Maxime Ripard maxime at cerno.tech
Wed May 13 16:19:23 CEST 2020



On Wed, May 06, 2020 at 04:15:12PM +0800, Samuel Zou wrote:
> Fixes coccicheck warning:
> 
> sound/soc/sunxi/sun4i-i2s.c:1177:1-3: WARNING: PTR_ERR_OR_ZERO can be used
> 
> Reported-by: Hulk Robot <hulkci at huawei.com>
> Signed-off-by: Samuel Zou <zou_wei at huawei.com>

Didn't we remove that coccicheck test?

Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20200513/2c209744/attachment-0001.sig>


More information about the Alsa-devel mailing list