Re: [PATCH v3] drm: bridge: add DesignWare HDMI I2S audio support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Russell

> > +	platform = platform_device_register_full(&pdevinfo);
> > +	if (IS_ERR_OR_NULL(platform))
> > +		return PTR_ERR(platform);
> 
> This is wrong.  If platform is NULL, PTR_ERR() will return zero, which
> will be interpreted as success.  Please, avoid using IS_ERR_OR_NULL(),
> it leads to exactly this kind of cockup - and it's unnecessary here
> because platform_device_register_full() does not return NULL.

Thank you for your feedback.
Before sending v4 patch, I would like to confirm. Do you meand this ?
# use IS_ERR() instead of IS_ERR_OR_NULL()

	platform = platform_device_register_full(&pdevinfo);
	if (IS_ERR(platform))
		return PTR_ERR(platform);
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux