From 304d24d34ca84abff22bcb15b371f08e5e1d7cdc Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 29 Aug 2007 16:16:30 +0000 Subject: [PATCH] Fixed incorrect #if statement. Reported by jzh800mail@126.com. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@176 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/digest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iscsi-scst/kernel/digest.c b/iscsi-scst/kernel/digest.c index 4d9d3beae..d58278b0a 100644 --- a/iscsi-scst/kernel/digest.c +++ b/iscsi-scst/kernel/digest.c @@ -24,7 +24,7 @@ void digest_alg_available(unsigned int *val) { -#if CONFIG_LIBCRC32C_MODULE || CONFIG_LIBCRC32C +#if defined(CONFIG_LIBCRC32C_MODULE) || defined(CONFIG_LIBCRC32C) int crc32c = 1; #else int crc32c = 0; @@ -75,7 +75,7 @@ static u32 evaluate_crc32_from_sg(struct scatterlist *sg, int total, } #endif -#if CONFIG_LIBCRC32C_MODULE || CONFIG_LIBCRC32C +#if defined(CONFIG_LIBCRC32C_MODULE) || defined(CONFIG_LIBCRC32C) while (total > 0) { int d = min(min(total, (int)(sg->length)), (int)(PAGE_SIZE - sg->offset));