summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-12-16 09:23:43 +0000
committerTom Hacohen <tom@stosb.com>2014-12-16 09:23:43 +0000
commit5c96fd457e00202b7bb32c406940e9ad91328b4f (patch)
tree8f54c98c169e25db53591f465c00c11f73c1f50d /src/lib
parent10d8199b2f5562c1ed6b907865e707a2ccfaee34 (diff)
Eina streq: remove redundant code in eina_streq.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/eina/eina_inline_str.x3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/eina/eina_inline_str.x b/src/lib/eina/eina_inline_str.x
index 537aafa096..917bcc382f 100644
--- a/src/lib/eina/eina_inline_str.x
+++ b/src/lib/eina/eina_inline_str.x
@@ -91,10 +91,9 @@ eina_strdup(const char *str)
91static inline Eina_Bool 91static inline Eina_Bool
92eina_streq(const char *a, const char *b) 92eina_streq(const char *a, const char *b)
93{ 93{
94 if ((!a) && (!b)) return EINA_TRUE; 94 if (a == b) return EINA_TRUE;
95 if (!a) return EINA_FALSE; 95 if (!a) return EINA_FALSE;
96 if (!b) return EINA_FALSE; 96 if (!b) return EINA_FALSE;
97 if (a == b) return EINA_TRUE;
98 return !strcmp(a, b); 97 return !strcmp(a, b);
99} 98}
100 99