summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremiah Mahler <jmmahler@gmail.com>2014-12-25 16:04:45 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-17 15:49:22 -0800
commit28b12e41683e6722a0c4d058fdf69be845e4832b (patch)
treebe9041818637df0278fc474bc68f26ccc5d9f246
parentfce6ad229b5d7a0601f59afa6ce6fdaa09b177f1 (diff)
staging: lustre: replace MIN with min_t, remove cast
Switch from MIN to min_t and remove the previous cast of the second argument to int. Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/lustre/lnet/lnet/lib-move.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/lnet/lib-move.c b/drivers/staging/lustre/lnet/lnet/lib-move.c
index 39e27c1be337..ed6eec9bd2cc 100644
--- a/drivers/staging/lustre/lnet/lnet/lib-move.c
+++ b/drivers/staging/lustre/lnet/lnet/lib-move.c
@@ -1530,7 +1530,7 @@ lnet_parse_reply(lnet_ni_t *ni, lnet_msg_t *msg)
LASSERT(md->md_offset == 0);
rlength = hdr->payload_length;
- mlength = MIN(rlength, (int)md->md_length);
+ mlength = min_t(int, rlength, md->md_length);
if (mlength < rlength &&
(md->md_options & LNET_MD_TRUNCATE) == 0) {