]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
usb: ftdi-elan: move a couple of statements to next line
authorColin Ian King <colin.king@canonical.com>
Thu, 26 Sep 2019 12:45:53 +0000 (13:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 12:09:42 +0000 (14:09 +0200)
There are a couple of statements that follow the end brace
of while loops that should be moved to the next line to clean
up the coding style. Cleans up style warnings from smatch.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190926124553.15177-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/ftdi-elan.c

index cdee3af33ad7b307ae9b3ec9b379b0d8875b6a27..8a3d9c0c8d8bc54304b5d46dc801ea1476af64f1 100644 (file)
@@ -333,7 +333,8 @@ static void ftdi_elan_abandon_completions(struct usb_ftdi *ftdi)
                *respond->result = -ESHUTDOWN;
                *respond->value = 0;
                complete(&respond->wait_completion);
-       } mutex_unlock(&ftdi->u132_lock);
+       }
+       mutex_unlock(&ftdi->u132_lock);
 }
 
 static void ftdi_elan_abandon_targets(struct usb_ftdi *ftdi)
@@ -763,7 +764,8 @@ static int ftdi_elan_total_command_size(struct usb_ftdi *ftdi, int command_size)
                struct u132_command *command = &ftdi->command[COMMAND_MASK &
                                                              i++];
                total_size += 5 + command->follows;
-       } return total_size;
+       }
+       return total_size;
 }
 
 static int ftdi_elan_command_engine(struct usb_ftdi *ftdi)