libsa: remobe unneeded check before free()
free() is checking for NULL, remove duplicate check.
This commit is contained in:
parent
7416e819ad
commit
7f56394a3c
@ -75,10 +75,9 @@ close(int fd)
|
||||
errno = EBADF;
|
||||
return (-1);
|
||||
}
|
||||
if (f->f_rabuf != NULL) {
|
||||
free(f->f_rabuf);
|
||||
f->f_rabuf = NULL;
|
||||
}
|
||||
|
||||
if (!(f->f_flags & F_RAW) && f->f_ops)
|
||||
err1 = (f->f_ops->fo_close)(f);
|
||||
if (!(f->f_flags & F_NODEV) && f->f_dev)
|
||||
|
Loading…
Reference in New Issue
Block a user