Commit 32c507f7 authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Stefan Richter

firewire: ohci: copy_iso_headers(): make comment match the code

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: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent a7611e84
...@@ -2685,10 +2685,9 @@ static void copy_iso_headers(struct iso_context *ctx, void *p) ...@@ -2685,10 +2685,9 @@ static void copy_iso_headers(struct iso_context *ctx, void *p)
return; return;
/* /*
* The iso header is byteswapped to little endian by * The two iso header quadlets are byteswapped to little
* the controller, but the remaining header quadlets * endian by the controller, but we want to present them
* are big endian. We want to present all the headers * as big endian for consistency with the bus endianness.
* as big endian, so we have to swap the first quadlet.
*/ */
if (ctx->base.header_size > 0) if (ctx->base.header_size > 0)
*(u32 *) (ctx->header + i) = __swab32(*(u32 *) (p + 4)); *(u32 *) (ctx->header + i) = __swab32(*(u32 *) (p + 4));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment