projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8529eea
)
attribute.c: Remove pointless condition in attribute_open().
author
Andre Noll
<maan@tuebingen.mpg.de>
Sat, 29 Aug 2015 10:35:42 +0000
(12:35 +0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 20 Sep 2015 18:32:34 +0000
(20:32 +0200)
ret is known to be negative at this point.
attribute.c
patch
|
blob
|
history
diff --git
a/attribute.c
b/attribute.c
index a28c92e9c133d80accd97cd884a3d267da63b034..d74ec92839c2c3753ebadf1caf2a06d2f109645e 100644
(file)
--- a/
attribute.c
+++ b/
attribute.c
@@
-531,7
+531,7
@@
static int attribute_open(const char *dir)
return ret;
}
attribute_table = NULL;
- if (ret
>= 0 || ret
== -OSL_ERRNO_TO_PARA_ERROR(E_OSL_NOENT))
+ if (ret == -OSL_ERRNO_TO_PARA_ERROR(E_OSL_NOENT))
return 1;
return ret;
}