Commit 7c192dca authored by Hari Prasath Gujulan Elango's avatar Hari Prasath Gujulan Elango Committed by Greg Kroah-Hartman

staging: lustre: lnet: selftest: use min_t in place of min

This patch silences the checkpatch warning 'min() should
probably be min_t'
Signed-off-by: default avatarHari Prasath Gujulan Elango <hgujulan@visteon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dfd6e2a2
...@@ -90,7 +90,7 @@ void srpc_set_counters(const srpc_counters_t *cnt) ...@@ -90,7 +90,7 @@ void srpc_set_counters(const srpc_counters_t *cnt)
static int static int
srpc_add_bulk_page(srpc_bulk_t *bk, struct page *pg, int i, int nob) srpc_add_bulk_page(srpc_bulk_t *bk, struct page *pg, int i, int nob)
{ {
nob = min(nob, (int)PAGE_CACHE_SIZE); nob = min_t(int, nob, PAGE_CACHE_SIZE);
LASSERT(nob > 0); LASSERT(nob > 0);
LASSERT(i >= 0 && i < bk->bk_niov); LASSERT(i >= 0 && i < bk->bk_niov);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment