commit | e14f4b93f2cd5b87c5a0c0141662a2c7be3e0f87 | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | Mon Dec 05 16:48:36 2016 +0100 |
committer | Harald Welte <laforge@gnumonks.org> | Fri Dec 09 12:13:02 2016 +0000 |
tree | 50389637c2ff74b4ec49cb5f273d46c8c51ac458 | |
parent | 2440f49a724f19a2f14b6ee1d4616c347b7d33ba [diff] |
cosmetic: chan_alloc: use switch instead of if-cascade Preparing cosmetically for a subsequent commit which will add another pchan kind to be checked, rather use a "switch (pchan) {}". Also reverse one if() branch to "early-exit" style. Change-Id: Ie5eb0fa859c4f225616095dc56d52ce0f2dc8bdc