diff --git a/src/uu/cksum/src/cksum.rs b/src/uu/cksum/src/cksum.rs
index 1b6ace6da..00576d94e 100644
--- a/src/uu/cksum/src/cksum.rs
+++ b/src/uu/cksum/src/cksum.rs
@@ -358,7 +358,7 @@ fn had_reset(args: &[String]) -> bool {
}
/// Calculates the length of the digest for the given algorithm.
-fn calculate_length(algo_name: &str, length: usize) -> UResult