mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
Update catalog.c - Removing sanity check as there is no need of checking non null pointer (#31653)
There is no need to check the pointer as the pointer will never be NULL. Co-authored-by: Frantisek Sumsal <frantisek@sumsal.cz>
This commit is contained in:
parent
6d1321c328
commit
6ad20da18a
@ -618,8 +618,7 @@ int catalog_get(const char* database, sd_id128_t id, char **_text) {
|
||||
r = 0;
|
||||
|
||||
finish:
|
||||
if (p)
|
||||
munmap(p, st.st_size);
|
||||
(void) munmap(p, st.st_size);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user