From 244c15fe7b253841c60090d08d6cb489cef2ea18 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Thu, 21 Feb 2019 20:35:38 +0100 Subject: [PATCH] ntdll: Remove redundant not-NULL check (coccinellery). Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- dlls/ntdll/virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index c86ca88334a..76dc6c284d7 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -2712,7 +2712,7 @@ NTSTATUS WINAPI NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, SIZE_T { *addr_ptr = wine_server_get_ptr( result.virtual_protect.addr ); *size_ptr = result.virtual_protect.size; - if (old_prot) *old_prot = result.virtual_protect.prot; + *old_prot = result.virtual_protect.prot; } return result.virtual_protect.status; }