osmo-pcu[master]: tbf: add llc_queue_size() to check llc_queue is valid before...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Mon Aug 22 22:53:45 UTC 2016


Patch Set 1:

(2 comments)

https://gerrit.osmocom.org/#/c/724/1//COMMIT_MSG
Commit Message:

Line 9: gcc6 is optimizing if (!this) {CODE} as this is assumed to never be
which "if (!this)" are you referring to? would be good
to clarify in this commit log. Currently I fail to see
the connection.


https://gerrit.osmocom.org/#/c/724/1/src/tbf.cpp
File src/tbf.cpp:

Line 194: 	return m_ms ? m_ms->llc_queue()->size() : 0;
nitpick...

from a code maintenance point of view, I guess it would be
better to call this->llc_queue() here. Then there is only "one"
pivotal place that decides on where llc_queue is coming from.

("one" in quotes because of the const dup)


-- 
To view, visit https://gerrit.osmocom.org/724
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I88cc3180f8f86785e3f07981895dabddf50b60a2
Gerrit-PatchSet: 1
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-HasComments: Yes



More information about the gerrit-log mailing list