]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/uverbs: Don't store struct file * for event files
authorRoland Dreier <rolandd@cisco.com>
Thu, 17 Apr 2008 04:01:08 +0000 (21:01 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 17 Apr 2008 04:01:08 +0000 (21:01 -0700)
commit1ae5c187acb67c2929428479c23a79c4288f0c68
tree929622d055227b831610565dd0775365ec6e4ba2
parent37608eea86a358ac6a18df0af55d4f77d08a1f30
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>
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_main.c