Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 810c0719 authored by Andrei Pelinescu-Onciul's avatar Andrei Pelinescu-Onciul Committed by David S. Miller
Browse files

sctp: fix sctp_setsockopt_autoclose compile warning



Fix the following warning, when building on 64 bits:

net/sctp/socket.c:2091: warning: large integer implicitly
                        truncated to unsigned type

Signed-off-by: default avatarAndrei Pelinescu-Onciul <andrei@iptel.org>
Acked-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent acb3cecd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2088,7 +2088,7 @@ static int sctp_setsockopt_autoclose(struct sock *sk, char __user *optval,
		return -EFAULT;
	/* make sure it won't exceed MAX_SCHEDULE_TIMEOUT */
	if (sp->autoclose > (MAX_SCHEDULE_TIMEOUT / HZ) )
		sp->autoclose = MAX_SCHEDULE_TIMEOUT / HZ ;
		sp->autoclose = (__u32)(MAX_SCHEDULE_TIMEOUT / HZ) ;

	return 0;
}