coverty finds this a deadcode, cppchecker complains...

This commit is contained in:
iceman1001 committed 2021-01-29 16:18:09 +01:00
1 parent 145a031922
commit a6e4b03c28
1 file changed
-5
-5
View File
@@ -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] == '\\')) {