Skip to contentSkip to conversation

: usb-serial: return_serial() trivial cleanup.

PATCH In review Luiz Fernando N. Capitulino 1 participant 1 message Sep 27, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/5 : 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).

(against 2.6.9-rc2-mm4).

 drivers/usb/serial/usb-serial.c |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)
drivers/usb/serial/usb-serial.c +1 -3
diff -X /home/lcapitulino/kernels/2.6/dontdiff -Nparu a/drivers/usb/serial/usb-serial.c a~/drivers/usb/serial/usb-serial.c
@@ -405,7 +405,7 @@ static struct usb_serial *get_free_seria
 	return NULL;
 }
 
-static void return_serial (struct usb_serial *serial)
+static void return_serial(struct usb_serial *serial)
 {
 	int i;
 
@@ -417,8 +417,6 @@ static void return_serial (struct usb_se
 	for (i = 0; i < serial->num_ports; ++i) {
 		serial_table[serial->minor + i] = NULL;
 	}
-
-	return;
 }
 
 static void destroy_serial(struct kref *kref)