summaryrefslogtreecommitdiff
path: root/drivers/staging/usbip
diff options
context:
space:
mode:
authorKurt Kanzenbach <ly80toro@cip.cs.fau.de>2013-02-22 12:13:27 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-11 09:45:28 -0700
commitb8ab0f2beeb9e0fc500078aa60c93131a0f2ffbf (patch)
tree1307fe8e1ae16b2c627358aa2938aaaa4f67a62d /drivers/staging/usbip
parent5af7746f47cef58e1d2499e7a79fe3306c129269 (diff)
staging: usbip: userspace: libsrc: spaces required around that '='
This patch fixes the following checkpatch error: -ERROR: spaces required around that '=' Signed-off-by: Kurt Kanzenbach <ly80toro@cip.cs.fau.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/usbip')
-rw-r--r--drivers/staging/usbip/userspace/libsrc/names.c2
-rw-r--r--drivers/staging/usbip/userspace/libsrc/usbip_common.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/usbip/userspace/libsrc/names.c b/drivers/staging/usbip/userspace/libsrc/names.c
index 8fe932d996be..8ee370bb9b90 100644
--- a/drivers/staging/usbip/userspace/libsrc/names.c
+++ b/drivers/staging/usbip/userspace/libsrc/names.c
@@ -472,7 +472,7 @@ static void parse(FILE *f)
{
char buf[512], *cp;
unsigned int linectr = 0;
- int lastvendor = -1, lastclass = -1, lastsubclass = -1, lasthut=-1, lastlang=-1;
+ int lastvendor = -1, lastclass = -1, lastsubclass = -1, lasthut = -1, lastlang = -1;
unsigned int u;
while (fgets(buf, sizeof(buf), f)) {
diff --git a/drivers/staging/usbip/userspace/libsrc/usbip_common.c b/drivers/staging/usbip/userspace/libsrc/usbip_common.c
index 98dc3df5e1a6..b55df81a24f5 100644
--- a/drivers/staging/usbip/userspace/libsrc/usbip_common.c
+++ b/drivers/staging/usbip/userspace/libsrc/usbip_common.c
@@ -44,7 +44,7 @@ static struct portst_string portst_strings[] = {
const char *usbip_status_string(int32_t status)
{
- for (int i=0; portst_strings[i].desc != NULL; i++)
+ for (int i = 0; portst_strings[i].desc != NULL; i++)
if (portst_strings[i].num == status)
return portst_strings[i].desc;
@@ -53,7 +53,7 @@ const char *usbip_status_string(int32_t status)
const char *usbip_speed_string(int num)
{
- for (int i=0; speed_strings[i].speed != NULL; i++)
+ for (int i = 0; speed_strings[i].speed != NULL; i++)
if (speed_strings[i].num == num)
return speed_strings[i].desc;
@@ -172,7 +172,7 @@ int read_attr_speed(struct sysfs_device *dev)
err:
sysfs_close_attribute(attr);
- for (int i=0; speed_strings[i].speed != NULL; i++) {
+ for (int i = 0; speed_strings[i].speed != NULL; i++) {
if (!strcmp(speed, speed_strings[i].speed))
return speed_strings[i].num;
}