Simplify fuse_device_filt_write
It always returns 1, so why bother having a variable.
MFC after: 2 weeks
MFC with: 7b8622fa22
Pull Request: https://github.com/freebsd/freebsd-src/pull/478
This commit is contained in:
parent
3a4ab18377
commit
9b876fbd50
@ -242,13 +242,11 @@ fuse_device_filt_read(struct knote *kn, long hint)
|
||||
static int
|
||||
fuse_device_filt_write(struct knote *kn, long hint)
|
||||
{
|
||||
int ready;
|
||||
|
||||
/* The device is always ready to write */
|
||||
kn->kn_data = 0;
|
||||
ready = 1;
|
||||
|
||||
return (ready);
|
||||
/* The device is always ready to write, so we return 1*/
|
||||
return (1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user