]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101810: Remove duplicated st_ino calculation (GH-101811)
authorJames Lee <49257044+juria90@users.noreply.github.com>
Mon, 13 Feb 2023 13:49:44 +0000 (05:49 -0800)
committerGitHub <noreply@github.com>
Mon, 13 Feb 2023 13:49:44 +0000 (13:49 +0000)
Python/fileutils.c

index 244bd899b3bd240850ea66b10bced60c1a09de1e..22b2257a56d0ec5938622f9084f7233df04df224 100644 (file)
@@ -1162,8 +1162,6 @@ _Py_fstat_noraise(int fd, struct _Py_stat_struct *status)
     }
 
     _Py_attribute_data_to_stat(&info, 0, status);
-    /* specific to fstat() */
-    status->st_ino = (((uint64_t)info.nFileIndexHigh) << 32) + info.nFileIndexLow;
     return 0;
 #else
     return fstat(fd, status);