From: "Luiz Fernando N. Capitulino" <lcapitulino@conectiva.com.br>
To: greg@kroah.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 3/5]: usb-serial: return_serial() trivial cleanup.
Date: Mon, 27 Sep 2004 13:54:48 -0300 [thread overview]
Message-ID: <20040927135448.3f0e5cb6.lcapitulino@conectiva.com.br> (raw)
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).
Signed-off-by: Luiz Capitulino <lcapitulino@conectiva.com.br>
drivers/usb/serial/usb-serial.c | 4 +---
1 files changed, 1 insertion(+), 3 deletions(-)
diff -X /home/lcapitulino/kernels/2.6/dontdiff -Nparu a/drivers/usb/serial/usb-serial.c a~/drivers/usb/serial/usb-serial.c
--- a/drivers/usb/serial/usb-serial.c 2004-09-26 13:30:50.000000000 -0300
+++ a~/drivers/usb/serial/usb-serial.c 2004-09-26 13:31:27.000000000 -0300
@@ -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)
reply other threads:[~2004-09-27 17:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040927135448.3f0e5cb6.lcapitulino@conectiva.com.br \
--to=lcapitulino@conectiva.com.br \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®