]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: usbip: userspace: fix whitespace errors
authorStefan Reif <ke42caxa@cip.cs.fau.de>
Fri, 22 Feb 2013 11:13:33 +0000 (12:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 16:45:29 +0000 (09:45 -0700)
This patch fixes the following checkpatch errors:
-ERROR: space required after that ','
-ERROR: spaces required around that '='
-ERROR: space prohibited before that close parenthesis
-WARNING: please, no space before tabs

Signed-off-by: Stefan Reif <ke42caxa@cip.cs.fau.de>
Signed-off-by: Kurt Kanzenbach <ly80toro@cip.cs.fau.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/userspace/src/usbip_detach.c
drivers/staging/usbip/userspace/src/usbip_network.c
drivers/staging/usbip/userspace/src/usbip_network.h
drivers/staging/usbip/userspace/src/usbipd.c

index dac5f065755adbfaab00278e4f35403440db3d10..13308df613a260147b43c9aa9a37d52837cc3a42 100644 (file)
@@ -49,7 +49,7 @@ static int detach_port(char *port)
        uint8_t portnum;
        char path[PATH_MAX+1];
 
-       for (unsigned int i=0; i < strlen(port); i++)
+       for (unsigned int i = 0; i < strlen(port); i++)
                if (!isdigit(port[i])) {
                        err("invalid port %s", port);
                        return -1;
index 1a84dd37e125ad884d5b24f5dc9395250a50f603..4cb76e5d71c8e915997e7a8b9483f722da3b155a 100644 (file)
@@ -56,7 +56,7 @@ void usbip_net_pack_usb_device(int pack, struct usbip_usb_device *udev)
 {
        usbip_net_pack_uint32_t(pack, &udev->busnum);
        usbip_net_pack_uint32_t(pack, &udev->devnum);
-       usbip_net_pack_uint32_t(pack, &udev->speed );
+       usbip_net_pack_uint32_t(pack, &udev->speed);
 
        usbip_net_pack_uint16_t(pack, &udev->idVendor);
        usbip_net_pack_uint16_t(pack, &udev->idProduct);
index 2d1e070fb7b8b9bdf72cf2b8cea2310065f63857..1bbefc993fb1f4bd9926990b554510cbc1fa0037 100644 (file)
@@ -35,8 +35,8 @@ struct op_common {
 
 #define PACK_OP_COMMON(pack, op_common)  do {\
        usbip_net_pack_uint16_t(pack, &(op_common)->version);\
-       usbip_net_pack_uint16_t(pack, &(op_common)->code   );\
-       usbip_net_pack_uint32_t(pack, &(op_common)->status );\
+       usbip_net_pack_uint16_t(pack, &(op_common)->code);\
+       usbip_net_pack_uint32_t(pack, &(op_common)->status);\
 } while (0)
 
 /* ---------------------------------------------------------------------- */
index 34760cc1d10e1777f234c3ac6e5102ce4b827163..cc3be17b9e240dce8b50bd2e2615d210f5226d73 100644 (file)
@@ -60,7 +60,7 @@ static const char usbipd_help_string[] =
        "       -d, --debug                             \n"
        "               Print debugging information.    \n"
        "                                               \n"
-       "       -h, --help                              \n"
+       "       -h, --help                              \n"
        "               Print this help.                \n"
        "                                               \n"
        "       -v, --version                           \n"
@@ -446,7 +446,7 @@ static int do_standalone_mode(int daemonize)
        }
 
        if (daemonize) {
-               if (daemon(0,0) < 0) {
+               if (daemon(0, 0) < 0) {
                        err("daemonizing failed: %s", strerror(errno));
                        return -1;
                }