]> Pileus Git - ~andy/linux/commitdiff
firewire: ohci: copy_iso_headers(): make comment match the code
authorClemens Ladisch <clemens@ladisch.de>
Sun, 18 Mar 2012 18:01:39 +0000 (19:01 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 18 Mar 2012 21:15:38 +0000 (22:15 +0100)
The comment incorrectly talked about one little-endian quadlet, while
there are actually two.  Furthermore, the endianness of the remaining
headers depends on whatever protocol is used, so don't mention them.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/ohci.c

index e52615a14382afcafd79ba011648e135284e07df..74ff1a8f4fcb446ee96c8b210d779ed66024a261 100644 (file)
@@ -2685,10 +2685,9 @@ static void copy_iso_headers(struct iso_context *ctx, void *p)
                return;
 
        /*
-        * The iso header is byteswapped to little endian by
-        * the controller, but the remaining header quadlets
-        * are big endian.  We want to present all the headers
-        * as big endian, so we have to swap the first quadlet.
+        * The two iso header quadlets are byteswapped to little
+        * endian by the controller, but we want to present them
+        * as big endian for consistency with the bus endianness.
         */
        if (ctx->base.header_size > 0)
                *(u32 *) (ctx->header + i) = __swab32(*(u32 *) (p + 4));