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
This commit is contained in:
Vladislav Bolkhovitin
2007-08-29 16:16:30 +00:00
parent b56f1075b9
commit 304d24d34c

View File

@@ -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));