diff options
author | Phil Sutter <phil@nwl.cc> | 2022-03-25 10:15:13 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-03-28 12:19:44 +0200 |
commit | 5ecb1226d73eb4f9407faa8d663d7038046d34c6 (patch) | |
tree | 8975b3b8e17f17967935a5d37ee12807819a4004 /src | |
parent | 7e4d4abd47c6b9b2af745c0a4c8b5532c1886399 (diff) |
Drop pointless assignments
These variables are not referred to after assigning within their scope
(or until they're overwritten).
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src')
-rw-r--r-- | src/helpers/ssdp.c | 1 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/helpers/ssdp.c b/src/helpers/ssdp.c index 0c6f563..527892c 100644 --- a/src/helpers/ssdp.c +++ b/src/helpers/ssdp.c @@ -256,7 +256,6 @@ static int find_hdr(const char *name, const uint8_t *data, int data_len, data += i+2; } - data_len -= name_len; data += name_len; if (pos) *pos = data; @@ -319,7 +319,7 @@ int main(int argc, char *argv[]) umask(0177); - if ((ret = init_config(config_file)) == -1) { + if (init_config(config_file) == -1) { dlog(LOG_ERR, "can't open config file `%s'", config_file); exit(EXIT_FAILURE); } |