OSDN Git Service

staging:lustre: Replace max() with max_t()
authorDulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Sun, 20 Oct 2013 17:36:35 +0000 (23:06 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Oct 2013 03:50:01 +0000 (04:50 +0100)
Replace max() with max_t() in accordance to chekpatch.pl warning in
lov_obd.c.

Signed-off-by: Dulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lov_obd.c

index 83d3943..df35b42 100644 (file)
@@ -554,7 +554,7 @@ static int lov_add_target(struct obd_device *obd, struct obd_uuid *uuidp,
                struct lov_tgt_desc **newtgts, **old = NULL;
                __u32 newsize, oldsize = 0;
 
-               newsize = max(lov->lov_tgt_size, (__u32)2);
+               newsize = max_t(__u32, lov->lov_tgt_size, 2);
                while (newsize < index + 1)
                        newsize = newsize << 1;
                OBD_ALLOC(newtgts, sizeof(*newtgts) * newsize);