Commit 5f482e1b authored by Anthony J. Breeds-Taurima's avatar Anthony J. Breeds-Taurima Committed by Greg Kroah-Hartman

[PATCH] Change "return EBLAH" to "return -EBLAH in drivers/*

Hello All,
	This is a simple patch that changes several "return EBLAH"'s in drivers/*
for "return -EBLAH".  I have done my best to check the call stack to ensure
that the change in sign of the return values wont break anything.

The patch supplied is agaist linux-2.4.19-pre6
parent 91813920
......@@ -596,7 +596,7 @@ static int se401_start_stream(struct usb_se401 *se401)
for (i=0; i<SE401_NUMSBUF; i++) {
urb=usb_alloc_urb(0, GFP_KERNEL);
if(!urb)
return ENOMEM;
return -ENOMEM;
FILL_BULK_URB(urb, se401->dev,
usb_rcvbulkpipe(se401->dev, SE401_VIDEO_ENDPOINT),
......
......@@ -769,7 +769,7 @@ static int stv680_start_stream (struct usb_stv *stv680)
for (i = 0; i < STV680_NUMSBUF; i++) {
urb = usb_alloc_urb (0, GFP_KERNEL);
if (!urb)
return ENOMEM;
return -ENOMEM;
/* sbuf is urb->transfer_buffer, later gets memcpyed to scratch */
usb_fill_bulk_urb (urb, stv680->udev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment