Commit 3eed8c03 authored by Pawel Lebioda's avatar Pawel Lebioda Committed by Greg Kroah-Hartman

Staging: usbip: missing a blank lines after declarations

Fix "Missing a blank line after declaration" style problems
for all files in drivers/staging/usbip.
Signed-off-by: default avatarPawel Lebioda <pawel.lebioda89@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ac082bc5
...@@ -99,6 +99,7 @@ static ssize_t store_sockfd(struct device *dev, struct device_attribute *attr, ...@@ -99,6 +99,7 @@ static ssize_t store_sockfd(struct device *dev, struct device_attribute *attr,
if (sockfd != -1) { if (sockfd != -1) {
int err; int err;
dev_info(dev, "stub up\n"); dev_info(dev, "stub up\n");
spin_lock_irq(&sdev->ud.lock); spin_lock_irq(&sdev->ud.lock);
......
...@@ -218,6 +218,7 @@ static int stub_send_ret_submit(struct stub_device *sdev) ...@@ -218,6 +218,7 @@ static int stub_send_ret_submit(struct stub_device *sdev)
*/ */
int i; int i;
for (i = 0; i < urb->number_of_packets; i++) { for (i = 0; i < urb->number_of_packets; i++) {
iov[iovnum].iov_base = urb->transfer_buffer + iov[iovnum].iov_base = urb->transfer_buffer +
urb->iso_frame_desc[i].offset; urb->iso_frame_desc[i].offset;
......
...@@ -321,12 +321,14 @@ int usbip_event_happened(struct usbip_device *ud); ...@@ -321,12 +321,14 @@ int usbip_event_happened(struct usbip_device *ud);
static inline int interface_to_busnum(struct usb_interface *interface) static inline int interface_to_busnum(struct usb_interface *interface)
{ {
struct usb_device *udev = interface_to_usbdev(interface); struct usb_device *udev = interface_to_usbdev(interface);
return udev->bus->busnum; return udev->bus->busnum;
} }
static inline int interface_to_devnum(struct usb_interface *interface) static inline int interface_to_devnum(struct usb_interface *interface)
{ {
struct usb_device *udev = interface_to_usbdev(interface); struct usb_device *udev = interface_to_usbdev(interface);
return udev->devnum; return udev->devnum;
} }
......
...@@ -75,6 +75,7 @@ const char *usbip_speed_string(int num) ...@@ -75,6 +75,7 @@ const char *usbip_speed_string(int num)
void dump_usb_interface(struct usbip_usb_interface *uinf) void dump_usb_interface(struct usbip_usb_interface *uinf)
{ {
char buff[100]; char buff[100];
usbip_names_get_class(buff, sizeof(buff), usbip_names_get_class(buff, sizeof(buff),
uinf->bInterfaceClass, uinf->bInterfaceClass,
uinf->bInterfaceSubClass, uinf->bInterfaceSubClass,
...@@ -86,7 +87,6 @@ void dump_usb_device(struct usbip_usb_device *udev) ...@@ -86,7 +87,6 @@ void dump_usb_device(struct usbip_usb_device *udev)
{ {
char buff[100]; char buff[100];
dbg("%-20s = %s", "path", udev->path); dbg("%-20s = %s", "path", udev->path);
dbg("%-20s = %s", "busid", udev->busid); dbg("%-20s = %s", "busid", udev->busid);
......
...@@ -56,6 +56,7 @@ static int record_connection(char *host, char *port, char *busid, int rhport) ...@@ -56,6 +56,7 @@ static int record_connection(char *host, char *port, char *busid, int rhport)
/* if VHCI_STATE_PATH exists, then it better be a directory */ /* if VHCI_STATE_PATH exists, then it better be a directory */
if (errno == EEXIST) { if (errno == EEXIST) {
struct stat s; struct stat s;
ret = stat(VHCI_STATE_PATH, &s); ret = stat(VHCI_STATE_PATH, &s);
if (ret < 0) if (ret < 0)
return -1; return -1;
......
...@@ -372,6 +372,7 @@ static int listen_all_addrinfo(struct addrinfo *ai_head, int sockfdlist[], ...@@ -372,6 +372,7 @@ static int listen_all_addrinfo(struct addrinfo *ai_head, int sockfdlist[],
for (ai = ai_head; ai && nsockfd < maxsockfd; ai = ai->ai_next) { for (ai = ai_head; ai && nsockfd < maxsockfd; ai = ai->ai_next) {
int sock; int sock;
addrinfo_to_text(ai, ai_buf, ai_buf_size); addrinfo_to_text(ai, ai_buf, ai_buf_size);
dbg("opening %s", ai_buf); dbg("opening %s", ai_buf);
sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
...@@ -461,7 +462,9 @@ static void write_pid_file() ...@@ -461,7 +462,9 @@ static void write_pid_file()
{ {
if (pid_file) { if (pid_file) {
dbg("creating pid file %s", pid_file); dbg("creating pid file %s", pid_file);
FILE *fp = fopen(pid_file, "w"); FILE *fp;
fp = fopen(pid_file, "w");
if (!fp) { if (!fp) {
err("pid_file: %s: %d (%s)", err("pid_file: %s: %d (%s)",
pid_file, errno, strerror(errno)); pid_file, errno, strerror(errno));
...@@ -602,6 +605,7 @@ int main(int argc, char *argv[]) ...@@ -602,6 +605,7 @@ int main(int argc, char *argv[])
int daemonize = 0; int daemonize = 0;
int ipv4 = 0, ipv6 = 0; int ipv4 = 0, ipv6 = 0;
int opt, rc = -1; int opt, rc = -1;
pid_file = NULL; pid_file = NULL;
usbip_use_stderr = 1; usbip_use_stderr = 1;
......
...@@ -635,6 +635,7 @@ static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) ...@@ -635,6 +635,7 @@ static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
{ {
int ret = 0; int ret = 0;
ret = usb_hcd_check_unlink_urb(hcd, urb, status); ret = usb_hcd_check_unlink_urb(hcd, urb, status);
if (ret) { if (ret) {
spin_unlock(&the_controller->lock); spin_unlock(&the_controller->lock);
...@@ -885,6 +886,7 @@ static int vhci_start(struct usb_hcd *hcd) ...@@ -885,6 +886,7 @@ static int vhci_start(struct usb_hcd *hcd)
for (rhport = 0; rhport < VHCI_NPORTS; rhport++) { for (rhport = 0; rhport < VHCI_NPORTS; rhport++) {
struct vhci_device *vdev = &vhci->vdev[rhport]; struct vhci_device *vdev = &vhci->vdev[rhport];
vhci_device_init(vdev); vhci_device_init(vdev);
vdev->rhport = rhport; vdev->rhport = rhport;
} }
......
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