Commit 2c0514ee authored by Dulshani Gunawardhana's avatar Dulshani Gunawardhana Committed by Greg Kroah-Hartman

staging:lustre: Replace max() with max_t()

Replace max() with max_t() in accordance to chekpatch.pl warning in
lov_obd.c.
Signed-off-by: default avatarDulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5e448831
...@@ -554,7 +554,7 @@ static int lov_add_target(struct obd_device *obd, struct obd_uuid *uuidp, ...@@ -554,7 +554,7 @@ static int lov_add_target(struct obd_device *obd, struct obd_uuid *uuidp,
struct lov_tgt_desc **newtgts, **old = NULL; struct lov_tgt_desc **newtgts, **old = NULL;
__u32 newsize, oldsize = 0; __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) while (newsize < index + 1)
newsize = newsize << 1; newsize = newsize << 1;
OBD_ALLOC(newtgts, sizeof(*newtgts) * newsize); OBD_ALLOC(newtgts, sizeof(*newtgts) * newsize);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment