Merge pull request #1533 from keloyang/close-negative-descriptor
Remove the code that close negative descriptor
This commit is contained in:
commit
5951cf5f36
|
@ -143,8 +143,7 @@ static int write_file(char *data, size_t data_len, char *pathfmt, ...)
|
|||
|
||||
fd = open(path, O_RDWR);
|
||||
if (fd < 0) {
|
||||
ret = -1;
|
||||
goto out;
|
||||
return -1;
|
||||
}
|
||||
|
||||
len = write(fd, data, data_len);
|
||||
|
|
Loading…
Reference in New Issue