{
        struct nfs4_stateid *stp = NULL;
        struct nfs4_delegation *dp = NULL;
-       stateid_t *stidp;
        struct inode *ino = current_fh->fh_dentry->d_inode;
        __be32 status;
 
                        dprintk("NFSD: delegation stateid not found\n");
                        goto out;
                }
-               stidp = &dp->dl_stateid;
-               status = check_stateid_generation(stateid, stidp);
+               status = check_stateid_generation(stateid, &dp->dl_stateid);
                if (status)
                        goto out;
                status = nfs4_check_delegmode(dp, flags);
                        goto out;
                if (!stp->st_stateowner->so_confirmed)
                        goto out;
-               stidp = &stp->st_stateid;
-               status = check_stateid_generation(stateid, stidp);
+               status = check_stateid_generation(stateid, &stp->st_stateid);
                if (status)
                        goto out;
                status = nfs4_check_openmode(stp, flags);