diff --git a/master/pdo.c b/master/pdo.c index 9d122cc20fb33e529e389b488fb01174799c86f0..58df96d8ecadada67ab2ac40e62da5b18e06e531 100644 --- a/master/pdo.c +++ b/master/pdo.c @@ -192,7 +192,7 @@ int ec_pdo_equal_entries( if ((item1 == head1) ^ (item2 == head2)) // unequal lengths return 0; - if (item1 == head1 && item2 == head2) // both finished + if (item1 == head1) // both finished break; entry1 = list_entry(item1, ec_pdo_entry_t, list); diff --git a/master/pdo_mapping.c b/master/pdo_mapping.c index f18b190183f2f44f74d10bba640e808738d23060..023d915bd3569d527b5bcd985c16435e6d44ba03 100644 --- a/master/pdo_mapping.c +++ b/master/pdo_mapping.c @@ -303,7 +303,7 @@ int ec_pdo_mapping_equal( if ((l1 == h1) ^ (l2 == h2)) // unequal lengths return 0; - if (l1 == h1 && l2 == h2) // both finished + if (l1 == h1) // both finished break; p1 = list_entry(l1, ec_pdo_t, list);