Commit 10503542 authored by Luiz Capitulino's avatar Luiz Capitulino Committed by Greg Kroah-Hartman

[PATCH] usb-serial: return_serial() trivial cleanup.

 return_serial() trivial cleanup:

1) CodingStyle fix;
2) The `return' is not necessary, we are at the end of a function
which don't return nothing (void).
Signed-off-by: default avatarLuiz Capitulino <lcapitulino@conectiva.com.br>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 3b8b2da5
...@@ -405,7 +405,7 @@ static struct usb_serial *get_free_serial (struct usb_serial *serial, int num_po ...@@ -405,7 +405,7 @@ static struct usb_serial *get_free_serial (struct usb_serial *serial, int num_po
return NULL; return NULL;
} }
static void return_serial (struct usb_serial *serial) static void return_serial(struct usb_serial *serial)
{ {
int i; int i;
...@@ -417,8 +417,6 @@ static void return_serial (struct usb_serial *serial) ...@@ -417,8 +417,6 @@ static void return_serial (struct usb_serial *serial)
for (i = 0; i < serial->num_ports; ++i) { for (i = 0; i < serial->num_ports; ++i) {
serial_table[serial->minor + i] = NULL; serial_table[serial->minor + i] = NULL;
} }
return;
} }
static void destroy_serial(struct kref *kref) static void destroy_serial(struct kref *kref)
......
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