summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-06 14:27:04 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-06 14:27:04 -0500
commitf1e30c3197910f319cf2d624666be87a0580b82a (patch)
tree0889ad9ea189d12a346e3894485f96544c2aa292 /gpsd.c
parent6a70ad85340b25b5e3a224d61e4cee7277333969 (diff)
downloadgpsd-f1e30c3197910f319cf2d624666be87a0580b82a.tar.gz
Remove code which Coverity correctly calls out as statically dead.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gpsd.c b/gpsd.c
index 3de17874..c1e916ac 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1213,11 +1213,7 @@ static void handle_request(struct subscriber_t *sub,
}
/* we should have exactly one device now */
}
- if (device == NULL)
- (void)snprintf(reply + strlen(reply),
- replylen - strlen(reply),
- "{\"class\":\"ERROR\",\"message\":\"Channel has no device (possible internal error).\"}\r\n");
- else if (!privileged_user(device))
+ if (!privileged_user(device))
(void)snprintf(reply + strlen(reply),
replylen - strlen(reply),
"{\"class\":\"ERROR\",\"message\":\"Multiple subscribers, cannot change control bits on %s.\"}\r\n",