summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-31 17:05:46 +0200
committerJim Meyering <meyering@redhat.com>2009-09-01 12:10:07 +0200
commite579a697b213109ac846696ba6a2de743e9d30f9 (patch)
treee31c191129e26343d374c65b03c9d4531d1858bc
parent68c9b3183491638492f1029c553160e11cd69f64 (diff)
downloadcoreutils-e579a697b213109ac846696ba6a2de743e9d30f9.tar.xz
maint: dd: remove unnecessary initialization
* src/dd.c (skip): Remove set-but-never-used variable, soffset.
-rw-r--r--src/dd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dd.c b/src/dd.c
index d2f566eac..04665f98f 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -1315,14 +1315,13 @@ skip (int fdesc, char const *file, uintmax_t records, size_t blocksize,
else
{
int lseek_errno = errno;
- off_t soffset;
/* The seek request may have failed above if it was too big
(> device size, > max file size, etc.)
Or it may not have been done at all (> OFF_T_MAX).
Therefore try to seek to the end of the file,
to avoid redundant reading. */
- if ((soffset = skip_via_lseek (file, fdesc, 0, SEEK_END)) >= 0)
+ if ((skip_via_lseek (file, fdesc, 0, SEEK_END)) >= 0)
{
/* File is seekable, and we're at the end of it, and
size <= OFF_T_MAX. So there's no point using read to advance. */