summaryrefslogtreecommitdiff
path: root/wiretap/catapult_dct2000.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-05-16 18:30:24 +0000
committerGuy Harris <guy@alum.mit.edu>2013-05-16 18:30:24 +0000
commite6e5aa7fa4c072b737dac1736d50823744e80b6b (patch)
treea821a1da30d2c78008eb60dda5cca904f9cc27a2 /wiretap/catapult_dct2000.c
parentd9d8174f1246035661c8938e3afd312984e02de4 (diff)
downloadwireshark-e6e5aa7fa4c072b737dac1736d50823744e80b6b.tar.gz
wth->priv is always set in the open routine; no need to check that it's
non-null. svn path=/trunk/; revision=49338
Diffstat (limited to 'wiretap/catapult_dct2000.c')
-rw-r--r--wiretap/catapult_dct2000.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/wiretap/catapult_dct2000.c b/wiretap/catapult_dct2000.c
index b619df7733..e14db08623 100644
--- a/wiretap/catapult_dct2000.c
+++ b/wiretap/catapult_dct2000.c
@@ -348,11 +348,6 @@ catapult_dct2000_read(wtap *wth, int *err, gchar **err_info,
dct2000_file_externals_t *file_externals =
(dct2000_file_externals_t*)wth->priv;
- /* There *has* to be an entry for this wth */
- if (!file_externals) {
- return FALSE;
- }
-
/* Search for a line containing a usable packet */
while (1) {
int line_length, seconds, useconds, data_chars;
@@ -491,11 +486,6 @@ catapult_dct2000_seek_read(wtap *wth, gint64 seek_off,
dct2000_file_externals_t *file_externals =
(dct2000_file_externals_t*)wth->priv;
- /* There *has* to be an entry for this wth */
- if (!file_externals) {
- return FALSE;
- }
-
/* Reset errno */
*err = errno = 0;
@@ -555,11 +545,6 @@ catapult_dct2000_close(wtap *wth)
dct2000_file_externals_t *file_externals =
(dct2000_file_externals_t*)wth->priv;
- /* The entry *has* to be found */
- if (!file_externals) {
- return;
- }
-
/* Free up its line prefix values */
g_hash_table_foreach_remove(file_externals->packet_prefix_table,
free_line_prefix_info, NULL);