Remove un-needed call to close(2). The fd that close is being

called on is invalid and has no use.

Reviewed by:	smkelly
This commit is contained in:
Christian S.J. Peron 2004-11-13 14:30:34 +00:00
parent 2f5d3f6f6a
commit 668e800b6f

View File

@ -973,7 +973,6 @@ kvm_uread(kd, kp, uva, buf, len)
fd = open(procfile, O_RDONLY, 0);
if (fd < 0) {
_kvm_err(kd, kd->program, "cannot open %s", procfile);
close(fd);
return (0);
}