From: Stefan Melmuk <stefan.melmuk@gmail.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: linux-kernel@vger.kernel.org, Stefan Melmuk <stefan.melmuk@gmail.com>
Subject: [PATCH 3/8] cdrom: fixed braces coding style issues
Date: Mon, 22 Feb 2010 13:26:33 +0100 [thread overview]
Message-ID: <1266841598-19662-3-git-send-email-stefan.melmuk@gmail.com> (raw)
In-Reply-To: <1266841598-19662-1-git-send-email-stefan.melmuk@gmail.com>
Fixed two coding style issues.
Signed-off-by: Stefan Melmuk <stefan.melmuk@gmail.com>
---
drivers/cdrom/cdrom.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
index 2088868..fdd251e 100644
--- a/drivers/cdrom/cdrom.c
+++ b/drivers/cdrom/cdrom.c
@@ -1088,8 +1088,7 @@ int open_for_data(struct cdrom_device_info *cdi)
(unsigned int)task_pid_nr(current));
ret=-EMEDIUMTYPE;
goto clean_up_and_return;
- }
- else {
+ } else {
cdinfo(CD_OPEN, "wrong media type, but CDO_CHECK_TYPE not set.\n");
}
}
@@ -1363,11 +1362,10 @@ static int cdrom_select_disc(struct cdrom_device_info *cdi, int slot)
kfree(info);
if (cdi->use_count > 1 || keeplocked) {
- if (slot == CDSL_CURRENT) {
+ if (slot == CDSL_CURRENT)
return curslot;
- } else {
+ else
return -EBUSY;
- }
}
/* Specifying CDSL_CURRENT will attempt to load the currnet slot,
--
1.7.0
next prev parent reply other threads:[~2010-02-22 12:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-22 12:26 [PATCH 1/8] cdrom: removed trailing whitespaces Stefan Melmuk
2010-02-22 12:26 ` [PATCH 2/8] cdrom: adjoined pointer asterisks to data names Stefan Melmuk
2010-02-22 12:26 ` Stefan Melmuk [this message]
2010-02-22 12:26 ` [PATCH 4/8] cdrom: added some spaces to fix coding style issues Stefan Melmuk
2010-02-22 12:26 ` [PATCH 5/8] cdrom: fixed assignment in if condition " Stefan Melmuk
2010-02-22 12:26 ` [PATCH 6/8] cdrom: fixed prohibited spaces coding " Stefan Melmuk
2010-02-22 12:26 ` [PATCH 7/8] cdrom: fixed indentation " Stefan Melmuk
2010-02-22 12:26 ` [PATCH 8/8] cdrom: fixed EXPORT_SYMBOL coding style issue Stefan Melmuk
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=1266841598-19662-3-git-send-email-stefan.melmuk@gmail.com \
--to=stefan.melmuk@gmail.com \
--cc=axboe@kernel.dk \
--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®