Skip to content

Commit

Permalink
genetlink: Remove unused function genl_err_attr()
Browse files Browse the repository at this point in the history
It is never used, so can remove it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
YueHaibing authored and David S. Miller committed Sep 17, 2020
1 parent 2b7ea12 commit 5114b33
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/net/genetlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 5114b33

Please sign in to comment.