diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index 1735a5ac863ca..7b0572dbc78db 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -319,8 +319,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, DBUG_RETURN(true); } - TABLE *table= table_list->table; - DBUG_ASSERT(table); + DBUG_ASSERT(table_list->table); DBUG_ASSERT(!conds || thd->stmt_arena->is_stmt_execute());