Commit 2627cb08 authored by Rahul Bedarkar's avatar Rahul Bedarkar Committed by Greg Kroah-Hartman

USB: wusbcore: fix up coding style issues in wa-nep.c

Signed-off-by: default avatarRahul Bedarkar <rahulbedarkar89@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0c106d0a
...@@ -93,7 +93,8 @@ static void wa_notif_dispatch(struct work_struct *ws) ...@@ -93,7 +93,8 @@ static void wa_notif_dispatch(struct work_struct *ws)
{ {
void *itr; void *itr;
u8 missing = 0; u8 missing = 0;
struct wa_notif_work *nw = container_of(ws, struct wa_notif_work, work); struct wa_notif_work *nw = container_of(ws, struct wa_notif_work,
work);
struct wahc *wa = nw->wa; struct wahc *wa = nw->wa;
struct wa_notif_hdr *notif_hdr; struct wa_notif_hdr *notif_hdr;
size_t size; size_t size;
...@@ -271,7 +272,8 @@ int wa_nep_create(struct wahc *wa, struct usb_interface *iface) ...@@ -271,7 +272,8 @@ int wa_nep_create(struct wahc *wa, struct usb_interface *iface)
wa->nep_buffer_size = 1024; wa->nep_buffer_size = 1024;
wa->nep_buffer = kmalloc(wa->nep_buffer_size, GFP_KERNEL); wa->nep_buffer = kmalloc(wa->nep_buffer_size, GFP_KERNEL);
if (wa->nep_buffer == NULL) { if (wa->nep_buffer == NULL) {
dev_err(dev, "Unable to allocate notification's read buffer\n"); dev_err(dev,
"Unable to allocate notification's read buffer\n");
goto error_nep_buffer; goto error_nep_buffer;
} }
wa->nep_urb = usb_alloc_urb(0, GFP_KERNEL); wa->nep_urb = usb_alloc_urb(0, GFP_KERNEL);
......
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