diff options
author | Dario Lombardo <lomato@gmail.com> | 2017-12-25 23:33:55 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-01-16 05:33:03 +0000 |
commit | a165a80452a49ef383a313b21ebc02925104abaf (patch) | |
tree | 7c4a6190d4d661d69b8f9d293ed64435dfc7b673 /dumpcap.c | |
parent | e861a112103ed4d1f2fa153932bcf86f120e3907 (diff) |
dumpcap: remove dead code (CID: 1188011).
Change-Id: I55149733ae420d32c6dd86c3c61baef57cc2082f
Reviewed-on: https://code.wireshark.org/review/24996
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1664,11 +1664,6 @@ cap_pipe_open_live(char *pipename, /* read the pcap header */ bytes_read = 0; while (bytes_read < sizeof magic) { - if (fd == -1) { - g_snprintf(errmsg, errmsgl, "Invalid file descriptor."); - goto error; - } - sel_ret = cap_pipe_select(fd); if (sel_ret < 0) { g_snprintf(errmsg, errmsgl, |