From 08994d44829ef540f6b77b56877b3230d0a7b74f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 2 Nov 2007 10:49:51 +0100 Subject: r25796: use NT_STATUS_HAVE_NO_MEMORY() metze (This used to be commit 43ef3d9dac5db1865b863c8c4a24c39167e7d2bc) --- source4/librpc/ndr/ndr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source4') diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c index e16f179b92..844d34e8c0 100644 --- a/source4/librpc/ndr/ndr.c +++ b/source4/librpc/ndr/ndr.c @@ -563,9 +563,7 @@ _PUBLIC_ NTSTATUS ndr_token_store(TALLOC_CTX *mem_ctx, { struct ndr_token_list *tok; tok = talloc(mem_ctx, struct ndr_token_list); - if (tok == NULL) { - return NT_STATUS_NO_MEMORY; - } + NT_STATUS_HAVE_NO_MEMORY(tok); tok->key = key; tok->value = value; DLIST_ADD((*list), tok); -- cgit