X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=memory.c;fp=memory.c;h=6cf7333375d035dd6eb36526eb338f355f310e78;hb=400ff0fb4bd5d3ecbff5fa4e783ea4d3e52817f1;hp=5f0225f71094d4352a61e99eccc12527ff5bd908;hpb=90d06f94de5d93a54e3ada5b0bd64455ff013fd0;p=fio.git diff --git a/memory.c b/memory.c index 5f0225f7..6cf73333 100644 --- a/memory.c +++ b/memory.c @@ -274,7 +274,7 @@ static int alloc_mem_cudamalloc(struct thread_data *td, size_t total_mem) static void free_mem_cudamalloc(struct thread_data *td) { #ifdef CONFIG_CUDA - if (td->dev_mem_ptr != NULL) + if (td->dev_mem_ptr) cuMemFree(td->dev_mem_ptr); if (cuCtxDestroy(td->cu_ctx) != CUDA_SUCCESS)