linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 42/63] ide-cd: coding style fixes for cdrom_get_toc_entry()
@ 2007-12-20  1:25 Bartlomiej Zolnierkiewicz
  2007-12-21 13:03 ` Sergei Shtylyov
  0 siblings, 1 reply; 2+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2007-12-20  1:25 UTC (permalink / raw)
  To: linux-ide; +Cc: linux-kernel


This is a preparation to move code handling cdrom.c IOCTLs out of ide-cd.c.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
 drivers/ide/ide-cd.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Index: b/drivers/ide/ide-cd.c
===================================================================
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -1993,11 +1993,13 @@ static int cdrom_get_toc_entry(ide_drive
 
 	/* Check validity of requested track number. */
 	ntracks = toc->hdr.last_track - toc->hdr.first_track + 1;
-	if (toc->hdr.first_track == CDROM_LEADOUT) ntracks = 0;
+
+	if (toc->hdr.first_track == CDROM_LEADOUT)
+		ntracks = 0;
+
 	if (track == CDROM_LEADOUT)
 		*ent = &toc->ent[ntracks];
-	else if (track < toc->hdr.first_track ||
-		 track > toc->hdr.last_track)
+	else if (track < toc->hdr.first_track || track > toc->hdr.last_track)
 		return -EINVAL;
 	else
 		*ent = &toc->ent[track - toc->hdr.first_track];

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 42/63] ide-cd: coding style fixes for cdrom_get_toc_entry()
  2007-12-20  1:25 [PATCH 42/63] ide-cd: coding style fixes for cdrom_get_toc_entry() Bartlomiej Zolnierkiewicz
@ 2007-12-21 13:03 ` Sergei Shtylyov
  0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2007-12-21 13:03 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide, linux-kernel

Bartlomiej Zolnierkiewicz wrote:

> This is a preparation to move code handling cdrom.c IOCTLs out of ide-cd.c.

> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>

MBR, Sergei

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-21 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-20  1:25 [PATCH 42/63] ide-cd: coding style fixes for cdrom_get_toc_entry() Bartlomiej Zolnierkiewicz
2007-12-21 13:03 ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).