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:
parent
2f5d3f6f6a
commit
668e800b6f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user