aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-05-01 22:29:08 +0000
committerGuy Harris <guy@alum.mit.edu>2012-05-01 22:29:08 +0000
commit7ed15c8debe1701cba967ffff351151f2f1d80c8 (patch)
tree11f82a8a163eca0bdc2959b630ca5f9312ae165d /wiretap
parent98b8a9895aefa96cff5b43100308c7842f55834f (diff)
Remove unnecessary null-pointer check.
svn path=/trunk/; revision=42376
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/vwr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/wiretap/vwr.c b/wiretap/vwr.c
index f3e98cf183..f3ef7e24d6 100644
--- a/wiretap/vwr.c
+++ b/wiretap/vwr.c
@@ -986,10 +986,8 @@ static int vwr_get_fpga_version(wtap *wth, int *err, gchar **err_info)
while (((data_length + i) % 4) != 0)
i = i + 1;
- if (rec_size == (data_length + vVW510024_E_STATS_LEN + i)) {
- if (s_510024_ptr != NULL)
- fpga_version = vVW510024_E_FPGA;
- }
+ if (rec_size == (data_length + vVW510024_E_STATS_LEN + i))
+ fpga_version = vVW510024_E_FPGA;
}
if (fpga_version != 1000)
{