diff options
author | Al Viro <viro@ZenIV.linux.org.uk> | 2014-11-20 08:13:57 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-21 14:58:18 -0500 |
commit | 479163f4608214d18bc3266ab6e4b578897a3052 (patch) | |
tree | cf8433299f46dc9118a293f47fa4aa16db554fac /include/linux/mlx5 | |
parent | c92d418f97aa2a35591601dc0b90cfc5fa8c603c (diff) |
mlx5: don't duplicate kvfree()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r-- | include/linux/mlx5/driver.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 246310dc8bef..b1bf41556b32 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -633,14 +633,6 @@ static inline void *mlx5_vzalloc(unsigned long size) return rtn; } -static inline void mlx5_vfree(const void *addr) -{ - if (addr && is_vmalloc_addr(addr)) - vfree(addr); - else - kfree(addr); -} - static inline u32 mlx5_base_mkey(const u32 key) { return key & 0xffffff00u; |