statefiles: bail early in dhcpv6_ia_write_statefile()
authorDavid Härdeman <[email protected]>
Fri, 7 Nov 2025 16:30:51 +0000 (17:30 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 11 Nov 2025 07:29:44 +0000 (08:29 +0100)
commit50c35c3195f242282a0068e1ec5f0521ffd5cea6
tree1070560543fd8ee4782e80af5e4b600730e6faca
parent134ec453dd586a275039a5f164cbf9597a3c931c
statefiles: bail early in dhcpv6_ia_write_statefile()

Bail early if config.dhcp_statefile isn't set, thus reducing the amount
of indentation in the function. The diff looks pretty gnarly, but that's
diff's fault, the actual code isn't changed at all.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/302
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/statefiles.c