Attention is currently required from: jolly. dexter has posted comments on this change by jolly. ( https://gerrit.osmocom.org/c/onomondo-ipa/+/43705?usp=email ) Change subject: Add option to forbid polling given eIM(s) ...................................................................... Patch Set 1: (2 comments) File src/ipa/libipa/ipad.c: https://gerrit.osmocom.org/c/onomondo-ipa/+/43705/comment/e661f7b3_53d70b17?... : PS1, Line 390: } We now have two loops that somehow interact with each other. The while loop here and the for loop where eim_init is called. Why not simply return a -EACCES here. And continue without doing anything at where the function is called. I think this would result in simpler code. File src/ipa/main.c: https://gerrit.osmocom.org/c/onomondo-ipa/+/43705/comment/3bdbfaff_48406794?... : PS1, Line 186: if (forbidden_eim_index == IPA_MAX_FORBIDDEN_IDS) { I recommend to use >= in those situations. Nothing wrong with ==, but I always think what if a radioactive particle strikes the CPU register that or the memory location where forbidden_eim_index is stored in ;-) You could also write: ``` if (forbidden_eim_index < IPA_MAX_FORBIDDEN_IDS) { cfg.forbidden .... break; } printf("Too.... break; ``` I think that would look more elegant. -- To view, visit https://gerrit.osmocom.org/c/onomondo-ipa/+/43705?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: onomondo-ipa Gerrit-Branch: master Gerrit-Change-Id: Ic6489207e54cdfff57cd214482ac4a071e154c94 Gerrit-Change-Number: 43705 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas@eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: dexter <pmaier@sysmocom.de> Gerrit-Attention: jolly <andreas@eversberg.eu> Gerrit-Comment-Date: Tue, 22 Sep 2026 13:37:39 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No