Abramo Bagnara wrote:
> Jaroslav Kysela ha scritto:
> > Log Message:
> > Fixed return comment for *near() functions
> >
> > + * \return 0 otherwise a negative error code if configuration space would become 
> > empty
>
> *near() functions semantic cannot return error by design.
>
> Taken for granted that configuration space on entry of function is not
> empty how it can become empty if I ask for *nearest* value?
>
> Obviously at least one configuration exists, then in the worst case such
> value is returned.

It may be possible that other errors than an empty configuration space
could occur.  For example, future ALSA versions might want to fail if
an hotplug device has been unpluggeed, or the configuration space
could have been reduced due to some outside influence.

I don't think we can guarantee that this function never ever fails.

Maybe we should simply drop the "if configuration space would become
empty".


Regards,
Clemens




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to