[PATCH 3/8] cdrom: fixed braces coding style issues

From: Stefan Melmuk
Date: Mon Feb 22 2010 - 07:27:33 EST


Fixed two coding style issues.

Signed-off-by: Stefan Melmuk <stefan.melmuk@xxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/