mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-24 18:16:04 +00:00
IB/uverbs: Don't store struct file * for event files
The file member of struct ib_uverbs_event_file was only used to keep track of whether the file had been closed or not. The only thing we ever did with the value was check if it was NULL or not. Simplify the code and get rid of the need to keep track of the struct file * we allocate by replacing the file member with an is_closed member. Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
parent
37608eea86
commit
1ae5c187ac
2 changed files with 6 additions and 7 deletions
Loading…
Add table
Add a link
Reference in a new issue