From d4fc2435ec702710f95ed88c9625654ce0e36ef5 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 27 Mar 2016 15:55:41 +0000 Subject: [PATCH] scst_mem: Remove a superfluous cast git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6843 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_mem.c b/scst/src/scst_mem.c index 281ca0e9e..56d51c09c 100644 --- a/scst/src/scst_mem.c +++ b/scst/src/scst_mem.c @@ -366,7 +366,7 @@ static unsigned long __sgv_can_be_shrunk(void) } spin_unlock_bh(&sgv_pools_lock); - res = max((int)0, inactive_pages - sgv_lo_wmk); + res = max(0, inactive_pages - sgv_lo_wmk); TRACE_MEM("Can free %ld (total %d)", res, atomic_read(&sgv_pages_total)); TRACE_EXIT_RES(res);