From 108f9d8324830eec33ee6e6e7d6034a1d154a022 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Mon, 28 Dec 2009 03:25:33 +0000 Subject: [PATCH] Remove an unused variable and an unreachable statement. --- lib/libarchive/archive_read_support_format_raw.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/libarchive/archive_read_support_format_raw.c b/lib/libarchive/archive_read_support_format_raw.c index 44b0aa0fbfc2..c994a5deb955 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