diff --git a/tt_metal/tt_metal.cpp b/tt_metal/tt_metal.cpp index eb5ef5465c1..0f2928926fb 100644 --- a/tt_metal/tt_metal.cpp +++ b/tt_metal/tt_metal.cpp @@ -428,7 +428,7 @@ void WriteToDeviceSharded(Buffer &buffer, const std::vector &host_buff buffer.size()); uint32_t page_size = buffer.page_size(); - TT_ASSERT((buffer.size == 0 && page_size == 0) || buffer.size() % page_size == 0); + TT_ASSERT(page_size == 0 ? buffer.size() == 0 : buffer.size() % page_size == 0); static constexpr uint32_t bytes_per_page_entry = sizeof(uint32_t); TT_ASSERT(page_size % bytes_per_page_entry == 0);