Skip to content
Commit 1ae5c187 authored by Roland Dreier's avatar Roland Dreier
Browse files

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: default avatarRoland Dreier <rolandd@cisco.com>
parent 37608eea
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment