]> rtime.felk.cvut.cz Git - linux-imx.git/commit
firewire: ohci: simplify iso header pointer arithmetic
authorClemens Ladisch <clemens@ladisch.de>
Sun, 18 Mar 2012 18:04:05 +0000 (19:04 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 18 Mar 2012 21:15:38 +0000 (22:15 +0100)
commit73864012f386ca5a193f3231c9b1936e23709a94
tree0278de90e03579c0bac789173b97faaf13112d2e
parent90fcc8987390bffd79c6fd16aa59cc6ef549efcb
firewire: ohci: simplify iso header pointer arithmetic

When storing the header data of completed iso packets, we effectively
treat the buffers as arrays of quadlets.  Actually declaring the
pointers as u32* avoids repetitive pointer arithmetic, removes the
unhelpfully named "i" variables, and thus makes the code clearer.

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