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:
gAlfonso-bit 2021-06-16 15:45:04 -04:00 committed by Alan Somers
parent 3a4ab18377
commit 9b876fbd50

View File

@ -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);
}
/*