Duplicated branch in function genl_family_get_maxattr().
Detected by gcc with -Werror=duplicated-branches.
libnl-tiny/netlink/genl/family.h:118:5: error: this condition has
identical branches [-Werror=duplicated-branches]
if (family->ce_mask & FAMILY_ATTR_MAXATTR)
Signed-off-by: Jesus Fernandez Manzano <jesus.manzano@galgus.net>
if (family->ce_mask & FAMILY_ATTR_MAXATTR)
return family->gf_maxattr;
else
- return family->gf_maxattr;
+ return 0;
}
static inline void genl_family_set_maxattr(struct genl_family *family, uint32_t maxattr)