summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/fcntl.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/fcntl.c')
-rw-r--r--cpukit/libcsupport/src/fcntl.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/cpukit/libcsupport/src/fcntl.c b/cpukit/libcsupport/src/fcntl.c
index ed99f3dd45..ad4fef7bbe 100644
--- a/cpukit/libcsupport/src/fcntl.c
+++ b/cpukit/libcsupport/src/fcntl.c
@@ -140,12 +140,10 @@ static int vfcntl(
*/
if (ret >= 0) {
- if (iop->handlers->fcntl_h) {
- int err = (*iop->handlers->fcntl_h)( cmd, iop );
- if (err) {
- errno = err;
- ret = -1;
- }
+ int err = (*iop->handlers->fcntl_h)( cmd, iop );
+ if (err) {
+ errno = err;
+ ret = -1;
}
}
return ret;