Commit a9db38a2 authored by David S. Miller's avatar David S. Miller

[BLUETOOTH]: Use min_t to avoid warning in rfcomm sock.c

parent 84ef5070
......@@ -501,7 +501,7 @@ static int rfcomm_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
lock_sock(sk);
while (len) {
size_t size = min(len, d->mtu);
size_t size = min_t(size_t, len, d->mtu);
skb = sock_alloc_send_skb(sk, size + RFCOMM_SKB_RESERVE,
msg->msg_flags & MSG_DONTWAIT, &err);
......
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