s4:pvfs: remove compiler warning
authorStefan Metzmacher <metze@samba.org>
Wed, 4 Feb 2009 07:53:45 +0000 (08:53 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 5 Feb 2009 16:48:08 +0000 (17:48 +0100)
metze

source4/ntvfs/posix/pvfs_wait.c

index ddfc410becd6559f1bad1980e8097a17cd5db48f..5552ab0d1b558215aa1cb1290c249913f0945ed8 100644 (file)
@@ -78,13 +78,12 @@ static void pvfs_wait_dispatch(struct messaging_context *msg,
        }
 
        pwait->reason = PVFS_WAIT_EVENT;
-       req = pwait->req;
 
        /* the extra reference here is to ensure that the req
           structure is not destroyed when the async request reply is
           sent, which would cause problems with the other ntvfs
           modules above us */
-       talloc_reference(msg, req);
+       req = talloc_reference(msg, pwait->req);
        ntvfs_async_setup(pwait->req, pwait);
        talloc_unlink(msg, req);
 }