]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - include/linux/mlx5/driver.h
treewide: use kv[mz]alloc* rather than opencoded variants
[mirror_ubuntu-eoan-kernel.git] / include / linux / mlx5 / driver.h
index 3fece51dcf136f7694d1202b95a0f90914b938df..18fc65b84b79755c44117dc778733a5b2f2e8349 100644 (file)
@@ -892,12 +892,7 @@ static inline u16 cmdif_rev(struct mlx5_core_dev *dev)
 
 static inline void *mlx5_vzalloc(unsigned long size)
 {
-       void *rtn;
-
-       rtn = kzalloc(size, GFP_KERNEL | __GFP_NOWARN);
-       if (!rtn)
-               rtn = vzalloc(size);
-       return rtn;
+       return kvzalloc(size, GFP_KERNEL);
 }
 
 static inline u32 mlx5_base_mkey(const u32 key)