staging: lustre: replace MIN with min_t, remove cast
authorJeremiah Mahler <jmmahler@gmail.com>
Fri, 26 Dec 2014 00:04:45 +0000 (16:04 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 23:49:22 +0000 (15:49 -0800)
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>
drivers/staging/lustre/lnet/lnet/lib-move.c

index 39e27c1be33717a3a4ef161e52255654ff04dd0e..ed6eec9bd2cc8b6cea3bc14f9cf88b795937b8d9 100644 (file)
@@ -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) {
This page took 0.026639 seconds and 5 git commands to generate.