LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] ide-cd: replace ntohs with generic byteorder macro be16_to_cpu
@ 2008-02-08  6:29 Borislav Petkov
  2008-02-08 20:39 ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 2+ messages in thread
From: Borislav Petkov @ 2008-02-08  6:29 UTC (permalink / raw)
  To: bzolnier; +Cc: linux-ide, linux-kernel

commit d41c6bc739e7ea7880f7f5983a9694f2e0214d92
Author: Borislav Petkov <petkovbb@gmail.com>
Date:   Fri Feb 8 07:25:44 2008 +0100

    ide-cd: replace ntohs with generic byteorder macro be16_to_cpu
    
    Signed-off-by: Borislav Petkov <petkovbb@gmail.com>

diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 5e42c19..354c91d 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -1555,7 +1555,7 @@ int ide_cd_read_toc(ide_drive_t *drive, struct request_sense *sense)
 	if (stat)
 		return stat;
 
-	toc->hdr.toc_length = ntohs (toc->hdr.toc_length);
+	toc->hdr.toc_length = be16_to_cpu(toc->hdr.toc_length);
 
 	if (info->cd_flags & IDE_CD_FLAG_TOCTRACKS_AS_BCD) {
 		toc->hdr.first_track = BCD2BIN(toc->hdr.first_track);
-- 
Regards/Gruß,
    Boris.

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

* Re: [PATCH] ide-cd: replace ntohs with generic byteorder macro be16_to_cpu
  2008-02-08  6:29 [PATCH] ide-cd: replace ntohs with generic byteorder macro be16_to_cpu Borislav Petkov
@ 2008-02-08 20:39 ` Bartlomiej Zolnierkiewicz
  0 siblings, 0 replies; 2+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2008-02-08 20:39 UTC (permalink / raw)
  To: petkovbb; +Cc: linux-ide, linux-kernel

On Friday 08 February 2008, Borislav Petkov wrote:
> commit d41c6bc739e7ea7880f7f5983a9694f2e0214d92
> Author: Borislav Petkov <petkovbb@gmail.com>
> Date:   Fri Feb 8 07:25:44 2008 +0100
> 
>     ide-cd: replace ntohs with generic byteorder macro be16_to_cpu
>     
>     Signed-off-by: Borislav Petkov <petkovbb@gmail.com>

applied

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

end of thread, other threads:[~2008-02-08 21:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-08  6:29 [PATCH] ide-cd: replace ntohs with generic byteorder macro be16_to_cpu Borislav Petkov
2008-02-08 20:39 ` Bartlomiej Zolnierkiewicz

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).