Skip to content

Commit 099b835

Browse files
committed
refactor(rpc): remove redundant check for tensor->type
Breaks CI on ubuntu-cpu-make. Tensor type is uint32_t, thus the check is not needed. Signed-off-by: Ville Vesilehto <[email protected]>
1 parent eef59bc commit 099b835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-rpc/ggml-rpc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ bool rpc_server::buffer_clear(const rpc_msg_buffer_clear_req & request) {
983983

984984
ggml_tensor * rpc_server::deserialize_tensor(struct ggml_context * ctx, const rpc_tensor * tensor) {
985985
// Validate tensor type before using it
986-
if (tensor->type < 0 || tensor->type >= GGML_TYPE_COUNT) {
986+
if (tensor->type >= GGML_TYPE_COUNT) {
987987
GGML_LOG_ERROR("[%s] invalid tensor type received: %u\n", __func__, tensor->type);
988988
return nullptr;
989989
}

0 commit comments

Comments
 (0)