aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/xor.c
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2012-04-04 09:06:10 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2012-04-09 03:21:16 -0400
commitd788fec855e832ee3381d9d3afc91c9c0292e428 (patch)
tree7c88335e3d097d43320128a931d5682c079fc06b /crypto/xor.c
parenta0ea0f6d17a6f14319069b039b7a9ebf54009678 (diff)
crypto, xor: Sanitize checksumming function selection output
Currently, it says [ 1.015541] xor: automatically using best checksumming function: generic_sse [ 1.040769] generic_sse: 6679.000 MB/sec [ 1.045377] xor: using function: generic_sse (6679.000 MB/sec) and repeats the function name three times unnecessarily. Change it into [ 1.015115] xor: automatically using best checksumming function: [ 1.040794] generic_sse: 6680.000 MB/sec and save us a line in dmesg. No functional change. Cc: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/xor.c')
-rw-r--r--crypto/xor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/xor.c b/crypto/xor.c
index b75182d8ab14..664b6dfa9e2c 100644
--- a/crypto/xor.c
+++ b/crypto/xor.c
@@ -129,9 +129,9 @@ calibrate_xor_blocks(void)
129 129
130 if (fastest) { 130 if (fastest) {
131 printk(KERN_INFO "xor: automatically using best " 131 printk(KERN_INFO "xor: automatically using best "
132 "checksumming function: %s\n", 132 "checksumming function:\n");
133 fastest->name);
134 xor_speed(fastest); 133 xor_speed(fastest);
134 goto out;
135 } else { 135 } else {
136 printk(KERN_INFO "xor: measuring software checksum speed\n"); 136 printk(KERN_INFO "xor: measuring software checksum speed\n");
137 XOR_TRY_TEMPLATES; 137 XOR_TRY_TEMPLATES;
@@ -146,6 +146,7 @@ calibrate_xor_blocks(void)
146 146
147#undef xor_speed 147#undef xor_speed
148 148
149 out:
149 free_pages((unsigned long)b1, 2); 150 free_pages((unsigned long)b1, 2);
150 151
151 active_template = fastest; 152 active_template = fastest;