Skip to content

Commit 9291429

Browse files
committed
stx_mode getter: remove temporary variable
1 parent 82a6f31 commit 9291429

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/posixmodule.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3386,8 +3386,7 @@ pystatx_result_get_stx_mode(PyObject *op, void *Py_UNUSED(context))
33863386
if (!(self->stx.stx_mask & (STATX_TYPE | STATX_MODE))) {
33873387
Py_RETURN_NONE;
33883388
}
3389-
unsigned short value = self->stx.stx_mode;
3390-
return PyLong_FromUnsignedLong(value);
3389+
return PyLong_FromUnsignedLong(self->stx.stx_mode);
33913390
}
33923391

33933392

0 commit comments

Comments
 (0)