commit | b753cdcbee9ce4a9bf3afa9924f920933a3d0bf3 | [log] [tgz] |
---|---|---|
author | Stefan Sperling <ssperling@sysmocom.de> | Mon Nov 12 13:03:04 2018 +0100 |
committer | Stefan Sperling <ssperling@sysmocom.de> | Mon Nov 12 13:03:04 2018 +0100 |
tree | 5a1a3adc015766a202e1bd7c425cc5eb1ca4333f | |
parent | a68256ea1ee1e2879b9356e0d076c9c54fd74177 [diff] |
fix bogus error check in gprs_sndcp_comp_create() The function gprs_sndcp_get_compression_class() returns -EINVAL upon error, not -1, so an existing assertion would never trigger. Instead, check for the values we want first (PROTOCOL_COMP or DATA_COMP) and assert(false) in case the returned value doesn't match either of these. Found by: Neels Change-Id: I8444c1ed052707c76a979fb06cb018ac678defa7