cppcheck fixes

This commit is contained in:
iceman1001 2022-01-06 18:18:48 +01:00
commit b3731c6003
8 changed files with 33 additions and 22 deletions

View file

@ -219,10 +219,7 @@ int CLIParamHexToBuf(struct arg_str *argstr, uint8_t *data, int maxdatalen, int
// concat all strings in argstr into tmpstr[]
//
int res = CLIParamStrToBuf(argstr, tmpstr, sizeof(tmpstr), &tmplen);
if (res) {
return res;
}
if (tmplen == 0) {
if (res || (tmplen == 0)) {
return res;
}