Skip to content

Commit e749455

Browse files
cowtoolzjhuber6
andauthored
Update libc/src/sys/ioctl/linux/ioctl.cpp
Co-authored-by: Joseph Huber <[email protected]>
1 parent 51499ce commit e749455

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libc/src/sys/ioctl/linux/ioctl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ LLVM_LIBC_FUNCTION(int, ioctl, (int fd, unsigned long request, ...)) {
2525
va_end(vargs);
2626

2727
// Some ioctls can be expected to return positive values
28-
if (ret >= 0) {
28+
if (ret >= 0)
2929
return ret;
30-
}
3130

3231
// If there is an error, errno is set and -1 is returned.
3332
libc_errno = -ret;

0 commit comments

Comments
 (0)