summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-31 17:58:53 +0200
committerJim Meyering <meyering@redhat.com>2009-09-01 12:10:07 +0200
commite3b14643f49573b23f707e124374e0065119a3e6 (patch)
tree92444e655272bb3d294b5ed233b993fd96489145
parente579a697b213109ac846696ba6a2de743e9d30f9 (diff)
downloadcoreutils-e3b14643f49573b23f707e124374e0065119a3e6.tar.xz
maint: shred: remove unnecessary initialization
* src/shred.c (genpattern): Value stored to "n" is never used.
-rw-r--r--src/shred.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/shred.c b/src/shred.c
index 43b6d64f5..2f3178993 100644
--- a/src/shred.c
+++ b/src/shred.c
@@ -677,7 +677,6 @@ genpattern (int *dest, size_t num, struct randint_source *s)
if ((size_t) k >= n)
{
randpasses += n;
- n = 0;
break;
}
randpasses += k;