Attention is currently required from: arehbein, pespin.
neels has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-bsc/+/30602 )

Change subject: vty: Add check against sensible default value for Ny1
......................................................................


Patch Set 16:

(5 comments)

File src/osmo-bsc/bts.c:

https://gerrit.osmocom.org/c/osmo-bsc/+/30602/comment/d1837a83_5f05c512
PS9, Line 1744:                 unsigned long ny1_recommended = (T3124 + 
GSM_NY1_REQ_DELTA)/T3105 + 1;
> Without the '+ 1', due to integer arithmetic in C, we would be setting ny1 to 
> the largest integer sm […]
the standard idiom for integer division rounding up is:

  (foo + (bar - 1)) / bar

this avoids false incrementing when the division result was an exact integer


File src/osmo-bsc/bts.c:

https://gerrit.osmocom.org/c/osmo-bsc/+/30602/comment/25d572f1_b728eadd
PS14, Line 537:         }
(no need for braces when the body is a single line)


https://gerrit.osmocom.org/c/osmo-bsc/+/30602/comment/2449ffe2_dc6c9968
PS14, Line 1729:        const struct gsm_lchan *gl = gsm_bts_get_cbch(bts);
(re earlier question, 'lchan' stands for 'logical channel', a sub-division of a 
BTS timeslot)


https://gerrit.osmocom.org/c/osmo-bsc/+/30602/comment/df546584_1e43201e
PS14, Line 1738:        unsigned long T3105 = 
osmo_tdef_get(bts->network->T_defs, 3105, OSMO_TDEF_MS, -1);
in osmocom style we are required to declare all variables at the top of the 
scope


File src/osmo-bsc/bts_ipaccess_nanobts_omlattr.c:

https://gerrit.osmocom.org/c/osmo-bsc/+/30602/comment/a69f0cb9_077c0a65
PS16, Line 95: (void)
drop the cast to void?



--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/30602
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: If3f96a6bd4f9ae32b6421de43c1c5a5d64482089
Gerrit-Change-Number: 30602
Gerrit-PatchSet: 16
Gerrit-Owner: arehbein <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-CC: neels <[email protected]>
Gerrit-CC: pespin <[email protected]>
Gerrit-Attention: arehbein <[email protected]>
Gerrit-Attention: pespin <[email protected]>
Gerrit-Comment-Date: Mon, 02 Jan 2023 23:26:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: arehbein <[email protected]>
Comment-In-Reply-To: pespin <[email protected]>
Gerrit-MessageType: comment

Reply via email to