openbsc[master]: cosmetic: chan_alloc: use switch instead of if cascade

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 Dec 5 22:14:09 UTC 2016


Patch Set 1:

(1 comment)

https://gerrit.osmocom.org/#/c/1365/1/openbsc/src/libbsc/chan_alloc.c
File openbsc/src/libbsc/chan_alloc.c:

Line 153: 
> are you sure we don't want a break here? yes, _most_ cases above have a ret
ah, I missed that one. I was lucky because the fall-through does exactly the same thing and causes no harm, but it's ugly code and not intentional. thanks :)


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ie5eb0fa859c4f225616095dc56d52ce0f2dc8bdc
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-HasComments: Yes



More information about the gerrit-log mailing list