diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2016-06-07 14:31:29 +0200 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2016-10-18 11:51:02 +0200 |
commit | e4727a3591c4c4d769d890806b159ade9af3f6aa (patch) | |
tree | 362b71fba8e527ff46365693ec19deab770a0ced /src | |
parent | d38b92e972be130df3e6c908fb7e7bf1729ab7fb (diff) |
llc: remove NULL-pointer check of gprs_llc_queue::size()/octets()
All callers now check the pointer before calling it.
gcc6 is optimizing `if (!this) {CODE}` as this is assumed to never be a
std::nullptr here.
Change-Id: I918a094e0dc59098a9eb00d152c9ae42d36b3a99
Diffstat (limited to 'src')
-rw-r--r-- | src/llc.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -127,10 +127,10 @@ inline bool gprs_llc::fits_in_current_frame(uint8_t chunk_size) const inline size_t gprs_llc_queue::size() const { - return this ? m_queue_size : 0; + return m_queue_size; } inline size_t gprs_llc_queue::octets() const { - return this ? m_queue_octets : 0; + return m_queue_octets; } |