]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[NET]: Alpha checksum annotations and cleanups.
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 15 Nov 2006 05:14:53 +0000 (21:14 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:23:01 +0000 (21:23 -0800)
commit9be259aae5264511fe0a8b5e3d6711e0fd1d55df
treed424fd156edc0568a1d47b9322b1159202be109b
parent2bc357987a6510e61d33f3b20fa989fb2b6a10b8
[NET]: Alpha checksum annotations and cleanups.

* sanitize prototypes and annotate
* kill useless access_ok() in csum_partial_copy_from_user() (the only
caller checks it already).
* do_csum_partial_copy_from_user() is not needed now
* replace htons(len) with len << 8 - they are the same wrt checksums
on little-endian.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/alpha/lib/checksum.c
arch/alpha/lib/csum_partial_copy.c
include/asm-alpha/checksum.h