staging: lustre: lnet: selftest: use min_t in place of min
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>
Thu, 18 Jun 2015 11:28:55 +0000 (11:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Jun 2015 04:13:48 +0000 (21:13 -0700)
This patch silences the checkpatch warning 'min() should
probably be min_t'

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/rpc.c

index 59cf01f..6ae1331 100644 (file)
@@ -90,7 +90,7 @@ void srpc_set_counters(const srpc_counters_t *cnt)
 static int
 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(i >= 0 && i < bk->bk_niov);