Skip to content

Commit

Permalink
staging: usbip: userspace: libsrc: spaces required around that '='
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kurt Kanzenbach authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent 5af7746 commit b8ab0f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/usbip/userspace/libsrc/names.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/usbip/userspace/libsrc/usbip_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit b8ab0f2

Please sign in to comment.