Commit 521aea08 authored by Rahul Bedarkar's avatar Rahul Bedarkar Committed by Greg Kroah-Hartman

USB: wusbcore: fix up line break coding style issues in security.c

Signed-off-by: default avatarRahul Bedarkar <rahulbedarkar89@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 62316ff4
...@@ -33,7 +33,8 @@ static void wusbhc_gtk_rekey_work(struct work_struct *work); ...@@ -33,7 +33,8 @@ static void wusbhc_gtk_rekey_work(struct work_struct *work);
int wusbhc_sec_create(struct wusbhc *wusbhc) int wusbhc_sec_create(struct wusbhc *wusbhc)
{ {
wusbhc->gtk.descr.bLength = sizeof(wusbhc->gtk.descr) + sizeof(wusbhc->gtk.data); wusbhc->gtk.descr.bLength = sizeof(wusbhc->gtk.descr) +
sizeof(wusbhc->gtk.data);
wusbhc->gtk.descr.bDescriptorType = USB_DT_KEY; wusbhc->gtk.descr.bDescriptorType = USB_DT_KEY;
wusbhc->gtk.descr.bReserved = 0; wusbhc->gtk.descr.bReserved = 0;
wusbhc->gtk_index = 0; wusbhc->gtk_index = 0;
...@@ -222,7 +223,8 @@ int wusb_dev_sec_add(struct wusbhc *wusbhc, ...@@ -222,7 +223,8 @@ int wusb_dev_sec_add(struct wusbhc *wusbhc,
secd_size = le16_to_cpu(secd->wTotalLength); secd_size = le16_to_cpu(secd->wTotalLength);
new_secd = krealloc(secd, secd_size, GFP_KERNEL); new_secd = krealloc(secd, secd_size, GFP_KERNEL);
if (new_secd == NULL) { if (new_secd == NULL) {
dev_err(dev, "Can't allocate space for security descriptors\n"); dev_err(dev,
"Can't allocate space for security descriptors\n");
goto out; goto out;
} }
secd = new_secd; secd = new_secd;
...@@ -555,11 +557,13 @@ static void wusbhc_gtk_rekey_work(struct work_struct *work) ...@@ -555,11 +557,13 @@ static void wusbhc_gtk_rekey_work(struct work_struct *work)
list_for_each_entry_safe(wusb_dev, wusb_dev_next, &rekey_list, list_for_each_entry_safe(wusb_dev, wusb_dev_next, &rekey_list,
rekey_node) { rekey_node) {
list_del_init(&wusb_dev->rekey_node); list_del_init(&wusb_dev->rekey_node);
dev_dbg(&wusb_dev->usb_dev->dev, "%s: rekey device at port %d\n", dev_dbg(&wusb_dev->usb_dev->dev,
"%s: rekey device at port %d\n",
__func__, wusb_dev->port_idx); __func__, wusb_dev->port_idx);
if (wusb_dev_set_gtk(wusbhc, wusb_dev) < 0) { if (wusb_dev_set_gtk(wusbhc, wusb_dev) < 0) {
dev_err(&wusb_dev->usb_dev->dev, "%s: rekey device at port %d failed\n", dev_err(&wusb_dev->usb_dev->dev,
"%s: rekey device at port %d failed\n",
__func__, wusb_dev->port_idx); __func__, wusb_dev->port_idx);
} }
wusb_dev_put(wusb_dev); wusb_dev_put(wusb_dev);
......
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