]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/core/sock.c
net: cleanup unsigned to unsigned int
[mirror_ubuntu-bionic-kernel.git] / net / core / sock.c
index b2e14c07d9205467f0a8d83af3fe6108d277a15f..c7e60eac639bde6a64242760b5fa6418a5abea42 100644 (file)
@@ -1534,7 +1534,7 @@ struct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force,
  */
 void *sock_kmalloc(struct sock *sk, int size, gfp_t priority)
 {
-       if ((unsigned)size <= sysctl_optmem_max &&
+       if ((unsigned int)size <= sysctl_optmem_max &&
            atomic_read(&sk->sk_omem_alloc) + size < sysctl_optmem_max) {
                void *mem;
                /* First do the add, to avoid the race if kmalloc