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