Skip to content

Commit 5114b33

Browse files
YueHaibingdavem330
authored andcommitted
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>
1 parent 2b7ea12 commit 5114b33

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎include/net/genetlink.h‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,6 @@ static inline void genl_info_net_set(struct genl_info *info, struct net *net)
101101

102102
#define GENL_SET_ERR_MSG(info, msg) NL_SET_ERR_MSG((info)->extack, msg)
103103

104-
static inline int genl_err_attr(struct genl_info *info, int err,
105-
const struct nlattr *attr)
106-
{
107-
info->extack->bad_attr = attr;
108-
109-
return err;
110-
}
111-
112104
enum genl_validate_flags {
113105
GENL_DONT_VALIDATE_STRICT = BIT(0),
114106
GENL_DONT_VALIDATE_DUMP = BIT(1),

0 commit comments

Comments
 (0)