diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2017-11-14 21:29:08 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-11-14 21:45:32 +0100 |
commit | 0b0b2b96f2039403e456b1c84f6300cdef0696c0 (patch) | |
tree | 976ae72907b4bd52a9771ee552495dccc5ec6dc9 | |
parent | ce0b11f9c4d684cc136015d1bc1769ac193a6b0b (diff) | |
download | newlib-0b0b2b96f2039403e456b1c84f6300cdef0696c0.zip newlib-0b0b2b96f2039403e456b1c84f6300cdef0696c0.tar.gz newlib-0b0b2b96f2039403e456b1c84f6300cdef0696c0.tar.bz2 |
Cygwin: link: Simplify an expression
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 2f96740..5dfcae4 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -1237,16 +1237,11 @@ fhandler_disk_file::link (const char *newpath) { if (status == STATUS_INVALID_DEVICE_REQUEST || status == STATUS_NOT_SUPPORTED) - { - /* FS doesn't support hard links. Linux returns EPERM. */ - set_errno (EPERM); - return -1; - } + /* FS doesn't support hard links. Linux returns EPERM. */ + set_errno (EPERM); else - { - __seterrno_from_nt_status (status); - return -1; - } + __seterrno_from_nt_status (status); + return -1; } else if (pc.file_attributes () & FILE_ATTRIBUTE_TEMPORARY) { |