summaryrefslogtreecommitdiffstats
path: root/lib/libarchive
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2009-12-28 03:25:33 +0000
committerkientzle <kientzle@FreeBSD.org>2009-12-28 03:25:33 +0000
commit2533f9e873000dd90b42aa80989e7cec39047360 (patch)
treed6d450f4828ff85db30599eda89233068897ac56 /lib/libarchive
parent8ae7c78a5fda1b1ade1abb90395e249930dcecff (diff)
downloadFreeBSD-src-2533f9e873000dd90b42aa80989e7cec39047360.zip
FreeBSD-src-2533f9e873000dd90b42aa80989e7cec39047360.tar.gz
Remove an unused variable and an unreachable statement.
Diffstat (limited to 'lib/libarchive')
-rw-r--r--lib/libarchive/archive_read_support_format_raw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libarchive/archive_read_support_format_raw.c b/lib/libarchive/archive_read_support_format_raw.c
index 44b0aa0..c994a5d 100644
--- a/lib/libarchive/archive_read_support_format_raw.c
+++ b/lib/libarchive/archive_read_support_format_raw.c
@@ -89,9 +89,8 @@ archive_read_support_format_raw(struct archive *_a)
static int
archive_read_format_raw_bid(struct archive_read *a)
{
- const char *p;
- if ((p = __archive_read_ahead(a, 1, NULL)) == NULL)
+ if (__archive_read_ahead(a, 1, NULL) == NULL)
return (-1);
return (1);
}
@@ -149,7 +148,6 @@ archive_read_format_raw_read_data(struct archive_read *a,
*offset = info->offset;
return (avail);
}
- return (ARCHIVE_OK);
}
static int
OpenPOWER on IntegriCloud