]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
many: final set of coccinelle check-pointer-deref tweaks (#41426)
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Fri, 3 Apr 2026 17:27:09 +0000 (19:27 +0200)
committerGitHub <noreply@github.com>
Fri, 3 Apr 2026 17:27:09 +0000 (19:27 +0200)
This is a followup to https://github.com/systemd/systemd/pull/41400 with
the final set of tweaks so that the new coccinelle `check-pinters-deref`
checker runs without failures.

It also includes a commit with some fixes for redundant asserts and the
final commit to make the assert() in the inner loop of qsort
POINTER_MAY_BE_NULL which will become a no-op - that is probably the
most controversial one, I hope the commit message explains the
trade-offs, I'm happy to drop it, I have no strong opinion either way.

Please see the individual commits/commit messages for more details, most
is (hopefully) relatively boring/mechanical.

1  2 
src/basic/escape.c
src/basic/ether-addr-util.c
src/basic/fd-util.c
src/shared/loop-util.c

Simple merge
Simple merge
Simple merge
Simple merge