diff options
author | jmg <jmg@FreeBSD.org> | 2006-09-25 01:29:48 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2006-09-25 01:29:48 +0000 |
commit | 2b64b4e601ffed4e3d53d8b2a9e194cf862266dc (patch) | |
tree | 1dafe4895c99a1f653dbc4dcdf890b8c712d96fa /sys | |
parent | 903d9f39aa809534dc5ddd83ceb6e5bac8ba3a10 (diff) | |
download | FreeBSD-src-2b64b4e601ffed4e3d53d8b2a9e194cf862266dc.zip FreeBSD-src-2b64b4e601ffed4e3d53d8b2a9e194cf862266dc.tar.gz |
remove unnecessary NULL check...
Coverity ID: 1545
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_event.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index a8c9638..4861b14 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -1962,8 +1962,7 @@ kqfd_register(int fd, struct kevent *kev, struct thread *td, int waitok) kqueue_release(kq, 0); noaquire: - if (fp != NULL) - fdrop(fp, td); + fdrop(fp, td); return error; } |