]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-server-cmd-data - Remove useless trans != NULL checks.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Thu, 19 Aug 2021 23:19:28 +0000 (01:19 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Sun, 22 Aug 2021 08:07:25 +0000 (08:07 +0000)
src/lib-smtp/smtp-server-cmd-data.c

index 01965222c94b21451d1001b8d59f7df78fcd7035..ae4ab32534bccca32c3e5d5fe2e0dae2368a2623 100644 (file)
@@ -352,12 +352,10 @@ cmd_data_next(struct smtp_server_cmd_ctx *cmd,
        i_assert(trans != NULL);
        i_assert(conn->state.pending_mail_cmds == 0 &&
                conn->state.pending_rcpt_cmds == 0);
-       i_assert(trans != NULL);
 
        e_debug(cmd->event, "Command is next to be replied");
 
-       if (trans != NULL)
-               smtp_server_transaction_data_command(trans, cmd);
+       smtp_server_transaction_data_command(trans, cmd);
 
        /* check whether we have had successful mail and rcpt commands */
        if (!smtp_server_connection_data_check_state(cmd))