Removed unnecessary variable ptr in neighbor_attr_add_neighbor