projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b7ea12
)
genetlink: Remove unused function genl_err_attr()
author
YueHaibing
<yuehaibing@huawei.com>
Wed, 16 Sep 2020 14:17:28 +0000
(22:17 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 17 Sep 2020 23:28:13 +0000
(16:28 -0700)
It is never used, so can remove it.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/genetlink.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/genetlink.h
b/include/net/genetlink.h
index 6e5f1e1aa82267f53d7b4486fe85bfd204758a5e..b9eb92f3fe861f23e5d2f078a2a08633025049e4 100644
(file)
--- 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),