summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2020-09-16 17:17:28 +0300
committerDavid S. Miller <davem@davemloft.net>2020-09-18 02:28:13 +0300
commit5114b331051981ecbdf144b5ad33387ae8d0f0d5 (patch)
treee1100e17369e549f2e719555c9f24d71d460e91f /include
parent2b7ea122a0c437442bf54a5f1c60155757df270c (diff)
downloadlinux-5114b331051981ecbdf144b5ad33387ae8d0f0d5.tar.xz
genetlink: Remove unused function genl_err_attr()
It is never used, so can remove it. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/genetlink.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/net/genetlink.h b/include/net/genetlink.h
index 6e5f1e1aa822..b9eb92f3fe86 100644
--- a/include/net/genetlink.h
+++ b/include/net/genetlink.h
@@ -101,14 +101,6 @@ static inline void genl_info_net_set(struct genl_info *info, struct net *net)
#define GENL_SET_ERR_MSG(info, msg) NL_SET_ERR_MSG((info)->extack, msg)
-static inline int genl_err_attr(struct genl_info *info, int err,
- const struct nlattr *attr)
-{
- info->extack->bad_attr = attr;
-
- return err;
-}
-
enum genl_validate_flags {
GENL_DONT_VALIDATE_STRICT = BIT(0),
GENL_DONT_VALIDATE_DUMP = BIT(1),