aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/wusbcore/wa-nep.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/wusbcore/wa-nep.c')
-rw-r--r--drivers/usb/wusbcore/wa-nep.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/usb/wusbcore/wa-nep.c b/drivers/usb/wusbcore/wa-nep.c
index ada4e0870623..60a10d21947d 100644
--- a/drivers/usb/wusbcore/wa-nep.c
+++ b/drivers/usb/wusbcore/wa-nep.c
@@ -69,8 +69,8 @@ struct wa_notif_work {
69 * [the wuswad daemon, basically] 69 * [the wuswad daemon, basically]
70 * 70 *
71 * @_nw: Pointer to a descriptor which has the pointer to the 71 * @_nw: Pointer to a descriptor which has the pointer to the
72 * @wa, the size of the buffer and the work queue 72 * @wa, the size of the buffer and the work queue
73 * structure (so we can free all when done). 73 * structure (so we can free all when done).
74 * @returns 0 if ok, < 0 errno code on error. 74 * @returns 0 if ok, < 0 errno code on error.
75 * 75 *
76 * All notifications follow the same format; they need to start with a 76 * All notifications follow the same format; they need to start with a
@@ -93,7 +93,8 @@ static void wa_notif_dispatch(struct work_struct *ws)
93{ 93{
94 void *itr; 94 void *itr;
95 u8 missing = 0; 95 u8 missing = 0;
96 struct wa_notif_work *nw = container_of(ws, struct wa_notif_work, work); 96 struct wa_notif_work *nw = container_of(ws, struct wa_notif_work,
97 work);
97 struct wahc *wa = nw->wa; 98 struct wahc *wa = nw->wa;
98 struct wa_notif_hdr *notif_hdr; 99 struct wa_notif_hdr *notif_hdr;
99 size_t size; 100 size_t size;
@@ -271,7 +272,8 @@ int wa_nep_create(struct wahc *wa, struct usb_interface *iface)
271 wa->nep_buffer_size = 1024; 272 wa->nep_buffer_size = 1024;
272 wa->nep_buffer = kmalloc(wa->nep_buffer_size, GFP_KERNEL); 273 wa->nep_buffer = kmalloc(wa->nep_buffer_size, GFP_KERNEL);
273 if (wa->nep_buffer == NULL) { 274 if (wa->nep_buffer == NULL) {
274 dev_err(dev, "Unable to allocate notification's read buffer\n"); 275 dev_err(dev,
276 "Unable to allocate notification's read buffer\n");
275 goto error_nep_buffer; 277 goto error_nep_buffer;
276 } 278 }
277 wa->nep_urb = usb_alloc_urb(0, GFP_KERNEL); 279 wa->nep_urb = usb_alloc_urb(0, GFP_KERNEL);