Re: [PATCH] Fix signr comment in usbdevice_fs.h

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Mon, 29 Oct 2007, Phil Endecott wrote:

> This trivial documentation patch corrects a comment in usbdevice_fs.h; it
> previously suggested that the signal would only be sent on error, but I am
> told that it is sent on both successful and unsuccessful completion.
> 
> Signed-off-by: "Phil Endecott" <[email protected]>
> 
> --- linux/include/linux/usbdevice_fs.h.orig	2007-10-29 19:28:56.000000000 +0000
> +++ linux/include/linux/usbdevice_fs.h	2007-10-29 19:33:27.000000000 +0000
> @@ -102,7 +102,8 @@ struct usbdevfs_urb {
>  	int start_frame;
>  	int number_of_packets;
>  	int error_count;
> -	unsigned int signr;  /* signal to be sent on error, -1 if none should be sent */
> +	unsigned int signr;	/* signal to be sent on completion,
> +				   -1 if none should be sent. */

Good except for the fact that signr is 0 to indicate no signal should 
be sent.  I guess that's another error in the comment.  How can an 
unsigned int be equal to -1 anyway?

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.