Changeset: 1e62b63b5b74 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1e62b63b5b74
Modified Files:
monetdb5/mal/mal_module.c
Branch: Dec2016
Log Message:
Unnecessary tests.
diffs (23 lines):
diff --git a/monetdb5/mal/mal_module.c b/monetdb5/mal/mal_module.c
--- a/monetdb5/mal/mal_module.c
+++ b/monetdb5/mal/mal_module.c
@@ -84,8 +84,7 @@ Module newModule(Module scope, str nme){
// User modules are never global
if( strcmp(nme,"user")){
setModuleIndex(nme,cur);
- if ( moduleChain)
- cur->next = moduleChain;
+ cur->next = moduleChain;
moduleChain = cur;
}
return cur;
@@ -99,8 +98,7 @@ Module fixModule(Module scope, str nme){
if( strcmp(nme,"user")==0)
return scope;
- if( moduleIndex[(int)(*nme)][(int)(*(nme+1))])
- s= moduleIndex[(int)(*nme)][(int)(*(nme+1))];
+ s= moduleIndex[(int)(*nme)][(int)(*(nme+1))];
while(s != NULL){
if( nme == s->name )
return s;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list