USB: simplify usb_sg_init()

This patch (as1377) simplifies the code in usb_sg_init(), without
changing its functionality.  It also removes a couple of unused fields
from the usb_sg_request structure.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Alan Stern 2010-05-05 15:26:17 -04:00 committed by Greg Kroah-Hartman
parent a9914127e8
commit 0ba169aff9
2 changed files with 39 additions and 58 deletions

View file

@ -1469,8 +1469,6 @@ struct usb_sg_request {
struct usb_device *dev;
int pipe;
struct scatterlist *sg;
int nents;
int entries;
struct urb **urbs;