diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-09-17 11:09:45 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-09-23 09:27:44 +0200 |
| commit | 64cbb36448ff22ce8400744e296888efef1d1c04 (patch) | |
| tree | 9bb168a6f89471f26618eecc9e1fe0209bd65d7d /tools/lib/python | |
| parent | 9e4f1bc488bd799f22c8087544adcee9620d0f44 (diff) | |
| download | linux-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
