aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ascendtext.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2013-01-14 16:06:20 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2013-01-14 16:06:20 +0000
commit231bd8ab50bde21514ab0adb01dcd5d8a400d0d5 (patch)
tree510c388035844dfd4df9c3da1826de15638c8255 /wiretap/ascendtext.c
parent110509a77ff2c8396e1996976cc30f284ce16853 (diff)
Fix Coverity CID 762007: Logically dead code.
svn path=/trunk/; revision=47067
Diffstat (limited to 'wiretap/ascendtext.c')
-rw-r--r--wiretap/ascendtext.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/wiretap/ascendtext.c b/wiretap/ascendtext.c
index cace17ed4f..bac0cccb0e 100644
--- a/wiretap/ascendtext.c
+++ b/wiretap/ascendtext.c
@@ -148,13 +148,7 @@ static gint64 ascend_seek(wtap *wth, int *err, gchar **err_info)
}
}
- if (byte != EOF) {
- /* We didn't find the offset. Treat that as a "not an Ascend file"
- indication. */
- *err = 0;
- } else {
- *err = file_error(wth->fh, err_info);
- }
+ *err = file_error(wth->fh, err_info);
return -1;
found: