From a6e4b03c28be37000354c0cd845c145e0a5aebe6 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 29 Jan 2021 16:18:09 +0100 Subject: [PATCH] coverty finds this a deadcode, cppchecker complains... --- client/src/preferences.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client/src/preferences.c b/client/src/preferences.c index 92a91e54a..d961d2c6f 100644 --- a/client/src/preferences.c +++ b/client/src/preferences.c @@ -853,11 +853,6 @@ static int setCmdSavePaths(const char *Cmd) { path = trace_path; } - if (path == NULL) { - PrintAndLogEx(FAILED, "Must give at least one path"); - return PM3_EINVARG; - } - // remove trailing slash. size_t nplen = strlen(path); if ((path[nplen - 1] == '/') || (path[nplen - 1] == '\\')) {