This patch avoids some LOCs duplication. Signed-off-by: Laura Garcia Liebana <nevola@xxxxxxxxx> --- examples/rtnl/rtnl-neigh-dump.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/examples/rtnl/rtnl-neigh-dump.c b/examples/rtnl/rtnl-neigh-dump.c index 54d87e5..f4d5000 100644 --- a/examples/rtnl/rtnl-neigh-dump.c +++ b/examples/rtnl/rtnl-neigh-dump.c @@ -22,11 +22,6 @@ static int data_attr_cb(const struct nlattr *attr, void *data) switch(type) { case NDA_DST: - if (mnl_attr_validate(attr, MNL_TYPE_BINARY) < 0) { - perror("mnl_attr_validate"); - return MNL_CB_ERROR; - } - break; case NDA_LLADDR: if (mnl_attr_validate(attr, MNL_TYPE_BINARY) < 0) { perror("mnl_attr_validate"); -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html