Some newer SVACE version I happened to run locally detected misplaced
parentheses here. Fortunately, this would only result in returning a
wrong error code and not ignoring the error.
I have fixed the mistake, also removing the use of an assignment in an
if statement because there is no reason to do so.
Change-Id: I441e882ffbd484b6a7ec47eeaf5999b5e7992cd7
if (previous != nullptr)
previous->next = plist;
- if ((ret = _ckmc_alias_info_new(std::get<0>(it).c_str(), std::get<1>(it),
- &plist->info) != CKMC_ERROR_NONE))
- {
+ ret = _ckmc_alias_info_new(std::get<0>(it).c_str(), std::get<1>(it), &plist->info);
+ if (ret != CKMC_ERROR_NONE)
break;
- }
-
}
if (ret != CKMC_ERROR_NONE)