We are already in the !NT_STATUS_IS_OK if-branch, so this call was
redundant
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
}
}
- /*
- * If there was an error and the server is no
- * good any more...
- */
- if (cli_is_error(targetcli) &&
- smbc_getFunctionCheckServer(context)(context, srv)) {
+ /*
+ * There was an error (we're in the
+ * !NT_STATUS_IS_OK branch) and the
+ * server good any more...
+ */
+ if (smbc_getFunctionCheckServer(
+ context)(context, srv)) {
/* ... then remove it. */
if (smbc_getFunctionRemoveUnusedServer(context)(context,