pos can't be NULL in wpa_global_config_parse_str(), so there is no point
checking this, especially when pos was already dereferenced earlier.
Remove the redundant conditions.
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
prev_len = 0;
/* No change to the previously configured value */
- if ((!(*dst) && !pos) ||
- (*dst && pos && prev_len == len &&
- os_memcmp(*dst, pos, len) == 0))
+ if (*dst && prev_len == len && os_memcmp(*dst, pos, len) == 0)
return 1;
tmp = os_strdup(pos);