From: Nikolay Sivov Subject: [PATCH] ntdll: Remove redundant NULL check (Coverity) Message-Id: <1454716926-24998-1-git-send-email-nsivov@codeweavers.com> Date: Sat, 6 Feb 2016 03:02:06 +0300 Signed-off-by: Nikolay Sivov --- validate_open_object_attributes() already covers this dlls/ntdll/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/sync.c b/dlls/ntdll/sync.c index c88221e..e87e672 100644 --- a/dlls/ntdll/sync.c +++ b/dlls/ntdll/sync.c @@ -806,7 +806,7 @@ NTSTATUS WINAPI NtOpenTimer( HANDLE *handle, ACCESS_MASK access, const OBJECT_AT { req->access = access; req->attributes = attr->Attributes; - req->rootdir = wine_server_obj_handle( attr ? attr->RootDirectory : 0 ); + req->rootdir = wine_server_obj_handle( attr->RootDirectory ); if (attr->ObjectName) wine_server_add_data( req, attr->ObjectName->Buffer, attr->ObjectName->Length ); status = wine_server_call( req ); -- 2.7.0