1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

mdssvc: Slightly simplify dalloc_size()

talloc_get_size() and thus talloc_array_length() deals fine with a
NULL pointer

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2020-09-29 12:06:34 +02:00 committed by Jeremy Allison
parent a61ed4df0e
commit dfc870b6cd

View File

@ -79,11 +79,6 @@ size_t dalloc_size(const DALLOC_CTX *d)
if (d == NULL) {
return 0;
}
if (d->dd_talloc_array == NULL) {
return 0;
}
return talloc_array_length(d->dd_talloc_array);
}