mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-08 21:17:47 +03:00
journal: LGTM doesn't recognize suppressions in /* */
This commit is contained in:
parent
924426a703
commit
1a862e2151
@ -65,7 +65,7 @@ static uint64_t scale_progress(uint64_t scale, uint64_t p, uint64_t m) {
|
||||
* Currently all callers use m >= 1, but we keep the check to be defensive.
|
||||
*/
|
||||
|
||||
if (p >= m || m == 0) /* lgtm [cpp/constant-comparison] */
|
||||
if (p >= m || m == 0) // lgtm[cpp/constant-comparison]
|
||||
return scale;
|
||||
|
||||
return scale * p / m;
|
||||
|
Loading…
Reference in New Issue
Block a user