summaryrefslogtreecommitdiffstats
path: root/arch/mips/lib
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2008-10-11 16:18:53 +0100
committerRalf Baechle <ralf@linux-mips.org>2008-10-11 16:18:53 +0100
commitd86a8123b11a9a40d850f6e88b89c948c2477da3 (patch)
tree3fa2b7d5cba53da1e26961019bdf62e44e58273e /arch/mips/lib
parent384740dc49ea651ba350704d13ff6be9976e37fe (diff)
downloadop-kernel-dev-d86a8123b11a9a40d850f6e88b89c948c2477da3.zip
op-kernel-dev-d86a8123b11a9a40d850f6e88b89c948c2477da3.tar.gz
MIPS: IP checksums: Remove unncessary folding of sum to 16 bit.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/lib')
-rw-r--r--arch/mips/lib/csum_partial.S10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/mips/lib/csum_partial.S b/arch/mips/lib/csum_partial.S
index edac989..201d82e 100644
--- a/arch/mips/lib/csum_partial.S
+++ b/arch/mips/lib/csum_partial.S
@@ -276,11 +276,6 @@ LEAF(csum_partial)
dsra32 sum, sum, 0
addu sum, v1
#endif
- sll v1, sum, 16
- addu sum, v1
- sltu v1, sum, v1
- srl sum, sum, 16
- addu sum, v1
/* odd buffer alignment? */
beqz t7, 1f
@@ -678,11 +673,6 @@ EXC( sb t0, NBYTES-2(dst), .Ls_exc)
dsra32 sum, sum, 0
addu sum, v1
#endif
- sll v1, sum, 16
- addu sum, v1
- sltu v1, sum, v1
- srl sum, sum, 16
- addu sum, v1
/* odd buffer alignment? */
beqz odd, 1f
OpenPOWER on IntegriCloud