ACPI: Fix a hard coding style when determining if a device is a container, v3
[platform/adaptation/renesas_rcar/renesas_kernel.git] / net / compat.c
index 74ed1d7..79ae884 100644 (file)
@@ -301,8 +301,7 @@ void scm_detach_fds_compat(struct msghdr *kmsg, struct scm_cookie *scm)
                        break;
                }
                /* Bump the usage count and install the file. */
-               get_file(fp[i]);
-               fd_install(new_fd, fp[i]);
+               fd_install(new_fd, get_file(fp[i]));
        }
 
        if (i > 0) {