From: Daniel Bevenius Date: Thu, 4 Apr 2024 07:49:21 +0000 (+0200) Subject: common: remove duplicate check for curl (#6471) X-Git-Tag: upstream/0.0.4488~1885 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=4bcd6b959ca3991084ad1d8464caf2a734e29b1d;p=pkg%2Fggml%2Fsources%2Fllama.cpp common: remove duplicate check for curl (#6471) This commit removes one of the two identical checks for curl being NULL in llama_load_model_from_url. Signed-off-by: Daniel Bevenius --- diff --git a/common/common.cpp b/common/common.cpp index b8323c1c..3e2df6e3 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -1928,11 +1928,6 @@ struct llama_model * llama_load_model_from_url( return NULL; } - if (!curl) { - fprintf(stderr, "%s: error initializing libcurl\n", __func__); - return NULL; - } - if (!llama_download_file(curl, model_url, path_model)) { return NULL; }