These variables are not referred to after assigning within their scope (or until they're overwritten). Signed-off-by: Phil Sutter <phil@xxxxxx> --- src/helpers/ssdp.c | 1 - src/main.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/helpers/ssdp.c b/src/helpers/ssdp.c index 0c6f563c592aa..527892cdabf8a 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; diff --git a/src/main.c b/src/main.c index 31e0eed950b48..de4773df8a204 100644 --- a/src/main.c +++ b/src/main.c @@ -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); } -- 2.34.1