Remove unneeded NULL check.
authorJeremy Allison <jra@samba.org>
Tue, 15 Nov 2011 19:27:42 +0000 (11:27 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 15 Nov 2011 21:44:25 +0000 (22:44 +0100)
source3/smbd/aio.c

index d367826acc2ac908e0b4c87d29167cc1fad065a8..07b8388fba0692600e4c07c6c8d4e915d30d9e95 100644 (file)
@@ -387,10 +387,6 @@ bool cancel_smb2_aio(struct smb_request *smbreq)
        struct aio_extra *aio_ex = NULL;
        int ret;
 
-       if (smbreq) {
-               smb2req = smbreq->smb2req;
-       }
-
        if (smb2req) {
                aio_ex = talloc_get_type(smbreq->async_priv,
                                         struct aio_extra);