diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-06 14:27:04 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-06 14:27:04 -0500 |
commit | f1e30c3197910f319cf2d624666be87a0580b82a (patch) | |
tree | 0889ad9ea189d12a346e3894485f96544c2aa292 /gpsd.c | |
parent | 6a70ad85340b25b5e3a224d61e4cee7277333969 (diff) | |
download | gpsd-f1e30c3197910f319cf2d624666be87a0580b82a.tar.gz |
Remove code which Coverity correctly calls out as statically dead.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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", |