]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - fs/compat.c
compat: remove unnecessary assignment in compat_rw_copy_check_uvector()
[mirror_ubuntu-hirsute-kernel.git] / fs / compat.c
index eb1740ac8c0a1e9e167b5e53e0f49d425774ff3d..d717442c4133b44cca60aaed2306bd26fba798bc 100644 (file)
@@ -597,10 +597,8 @@ ssize_t compat_rw_copy_check_uvector(int type,
        if (nr_segs > fast_segs) {
                ret = -ENOMEM;
                iov = kmalloc(nr_segs*sizeof(struct iovec), GFP_KERNEL);
-               if (iov == NULL) {
-                       *ret_pointer = fast_pointer;
+               if (iov == NULL)
                        goto out;
-               }
        }
        *ret_pointer = iov;