]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/hwdb/hwdb.c
hwdb: simplify error handling in trie_store
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 Nov 2016 20:27:40 +0000 (15:27 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 30 Nov 2016 20:51:13 +0000 (15:51 -0500)
commitd702dcdfef04512fa1529acece6d84ea58740d74
tree1972a8aca9eed08230ce9bb84b51a15c4d9ea350
parent1cd592b91679f3a04fe884d51dd2b9d65eb5f2f9
hwdb: simplify error handling in trie_store

fclose() can also set errno, so the attempts to protect errno that the
code made were not successful. Simplify things by immediately saving
errno to r.
src/hwdb/hwdb.c