USB: cdc-wdm: kill the now unnecessary bMaxPacketSize0 field and udev variable
authorBjørn Mork <bjorn@mork.no>
Mon, 16 Jan 2012 14:12:01 +0000 (15:12 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jan 2012 22:34:40 +0000 (14:34 -0800)
commit8143a8963c374116f84aba15dcaeaf02370c8098
tree5dfc242477891472418b3a6e50c2776992400910
parent8457d99cab81e91724b43363f7fccd851d766187
USB: cdc-wdm: kill the now unnecessary bMaxPacketSize0 field and udev variable

We don't need bMaxPacketSize0, and keeping all these different size fields
around will only cause us to use the wrong one.

Seems the udev variable was only used for getting bMaxPacketSize0.  We
could have used it for the usb_fill_*_urb() calls, but as it wasn't
before - why start now?  Instead make the interface_to_usbdev()
calls consistent.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-wdm.c