Commit fa81b616 authored by Jan Kiszka's avatar Jan Kiszka

cobalt/rtdm: Drop unused nop_close

Since 1909729e, the device's close operation is always interposed
with __rtdm_dev_close, thus will never be NULL even if the driver
provides none. Other callers of rtdm_fd_enter, timerfd and mqueue, also
provide close handlers. So drop the default initialization.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 0f11be1d
......@@ -56,10 +56,6 @@ static int eadv(void)
return -EADV;
}
static void nop_close(struct rtdm_fd *fd)
{
}
static inline struct rtdm_fd_index *
fetch_fd_index(struct cobalt_ppd *p, int ufd)
{
......@@ -157,7 +153,6 @@ int rtdm_fd_enter(struct rtdm_fd *fd, int ufd, unsigned int magic,
assign_default_dual_handlers(ops->sendmsg);
assign_invalid_default_handler(ops->select);
assign_invalid_default_handler(ops->mmap);
__assign_default_handler(ops->close, nop_close);
ppd = cobalt_ppd_get(0);
fd->magic = magic;
......
Markdown is supported
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