Remove else statement after return
Suggested by clang tidy
This commit is contained in:
@@ -34,7 +34,8 @@ void *hc_dlsym (void *module, const char *symbol);
|
||||
if (noerr == 1) { \
|
||||
event_log_error (hashcat_ctx, "%s is missing from %s shared library.", #name, #libname); \
|
||||
return -1; \
|
||||
} else { \
|
||||
} \
|
||||
if (noerr != 1) { \
|
||||
event_log_warning (hashcat_ctx, "%s is missing from %s shared library.", #name, #libname); \
|
||||
return 0; \
|
||||
} \
|
||||
@@ -48,7 +49,8 @@ void *hc_dlsym (void *module, const char *symbol);
|
||||
if (noerr == 1) { \
|
||||
event_log_error (hashcat_ctx, "%s is missing from %s shared library.", #name, #libname); \
|
||||
return -1; \
|
||||
} else { \
|
||||
} \
|
||||
if (noerr != 1) { \
|
||||
event_log_warning (hashcat_ctx, "%s is missing from %s shared library.", #name, #libname); \
|
||||
return 0; \
|
||||
} \
|
||||
@@ -61,7 +63,8 @@ void *hc_dlsym (void *module, const char *symbol);
|
||||
if (noerr == 1) { \
|
||||
event_log_error (hashcat_ctx, "%s at address %08x is missing from %s shared library.", #name, addr, #libname); \
|
||||
return -1; \
|
||||
} else { \
|
||||
} \
|
||||
if (noerr != 1) { \
|
||||
event_log_warning (hashcat_ctx, "%s at address %08x is missing from %s shared library.", #name, addr, #libname); \
|
||||
return 0; \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user