From: Richard Knutsson Convert handmade 'min' to min(). Signed-off-by: Richard Knutsson Cc: Nadia Derbey Signed-off-by: Andrew Morton --- ipc/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN ipc/msg.c~ipc-convert-handmade-min-to-min ipc/msg.c --- a/ipc/msg.c~ipc-convert-handmade-min-to-min +++ a/ipc/msg.c @@ -898,7 +898,7 @@ out_unlock: if (IS_ERR(msg)) return PTR_ERR(msg); - msgsz = (msgsz > msg->m_ts) ? msg->m_ts : msgsz; + msgsz = min(msgsz, msg->m_ts); *pmtype = msg->m_type; if (store_msg(mtext, msg, msgsz)) msgsz = -EFAULT; _