From 72f619fd387991489fe47af8f00f21172e1f9939 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 29 Aug 2015 12:35:42 +0200 Subject: [PATCH] attribute.c: Remove pointless condition in attribute_open(). ret is known to be negative at this point. --- attribute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attribute.c b/attribute.c index a28c92e9..d74ec928 100644 --- 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; } -- 2.39.5