diff options
author | Hari Prasath Gujulan Elango <hgujulan@visteon.com> | 2015-06-18 11:28:55 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-18 21:13:48 -0700 |
commit | 7c192dcafeb1b91cd7fbac89ca2dbbfc2ca44bb2 (patch) | |
tree | 13db12a092ae5bbe24e15f8feee284f6452acf74 /drivers/staging | |
parent | dfd6e2a243e6d0a40501e7780998718a09840272 (diff) | |
download | linux-stable-7c192dcafeb1b91cd7fbac89ca2dbbfc2ca44bb2.tar.gz linux-stable-7c192dcafeb1b91cd7fbac89ca2dbbfc2ca44bb2.tar.bz2 linux-stable-7c192dcafeb1b91cd7fbac89ca2dbbfc2ca44bb2.zip |
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: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/lustre/lnet/selftest/rpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/selftest/rpc.c b/drivers/staging/lustre/lnet/selftest/rpc.c index 59cf01ff4334..6ae133138b17 100644 --- a/drivers/staging/lustre/lnet/selftest/rpc.c +++ b/drivers/staging/lustre/lnet/selftest/rpc.c @@ -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); |