summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-09-17 11:09:45 +0200
committerChristian Brauner <brauner@kernel.org>2026-09-23 09:27:44 +0200
commit64cbb36448ff22ce8400744e296888efef1d1c04 (patch)
tree9bb168a6f89471f26618eecc9e1fe0209bd65d7d /tools/lib/python
parent9e4f1bc488bd799f22c8087544adcee9620d0f44 (diff)
downloadlinux-next-64cbb36448ff22ce8400744e296888efef1d1c04.tar.gz
linux-next-64cbb36448ff22ce8400744e296888efef1d1c04.zip
file: make struct fd_prepare const and kill its err field
FD_PREPARE() releases the fd as soon as the file expression fails. The fd either holds the descriptor or the error. The separate field is redundant. Make fd and file plain members and struct fd_prepare simpler. Callers of FD_PREPARE() get a const pointer to the guard. Simplify all users as they can now easily access the trivial struct. No functional changes. Link: https://patch.msgid.link/20260917-work-file-fd_prepare-v1-4-b87534ca49f3@kernel.org Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions