From 396b750414590e66325b46dd59429483a80042c0 Mon Sep 17 00:00:00 2001 From: Martin Beyer Date: Mon, 10 Jan 2011 12:06:02 +0100 Subject: [PATCH] Fixed optional args in SCCudaModuleGetGlobal --- src/util-cuda.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util-cuda.c b/src/util-cuda.c index f8aaaf8f37..fbffab5efa 100644 --- a/src/util-cuda.c +++ b/src/util-cuda.c @@ -3289,9 +3289,9 @@ int SCCudaModuleGetGlobal(CUdeviceptr *dptr, unsigned int *bytes, CUmodule hmod, { CUresult result = 0; - if (dptr == NULL || bytes == NULL || name == NULL) { + if (name == NULL) { SCLogError(SC_ERR_INVALID_ARGUMENTS, "Invalid argument supplied. " - "dptr is NULL or bytes is NULL or name is NULL"); + "name is NULL"); goto error; }