Another simple example:
if (wpa_s->mlme.ssid_len == 0) return -EINVAL;
Why the unary minus? Is this (usually) done for functions that return >0 on success and <(=)0 on failure, or is there some other reason?
Another simple example:
if (wpa_s->mlme.ssid_len == 0) return -EINVAL;
Why the unary minus? Is this (usually) done for functions that return >0 on success and <(=)0 on failure, or is there some other reason?