diff options
author | Jamey Sharp <jamey@minilop.net> | 2009-10-07 11:06:34 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2010-04-26 19:18:41 -0700 |
commit | e372cc58e02391c3e8e82ac03f73fbe8b1f7d49c (patch) | |
tree | 1b70570da0d9a570571c62893b6b700d8e06f500 /mi/miinitext.c | |
parent | 25d1c6cd37cc4079adf7c4bad8d10678fb08b409 (diff) |
Boolean-or short-circuits, so (a || (!a && ...)) is redundant. Simplify.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'mi/miinitext.c')
-rw-r--r-- | mi/miinitext.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mi/miinitext.c b/mi/miinitext.c index 844863a59..a7441c9a8 100644 --- a/mi/miinitext.c +++ b/mi/miinitext.c @@ -537,8 +537,7 @@ InitExtensions(int argc, char *argv[]) for (i = 0; ExtensionModuleList[i].name != NULL; i++) { ext = &ExtensionModuleList[i]; if (ext->initFunc != NULL && - (ext->disablePtr == NULL || - (ext->disablePtr != NULL && !*ext->disablePtr))) { + (ext->disablePtr == NULL || !*ext->disablePtr)) { (ext->initFunc)(); } } |