eal/linux: fix return after alarm registration failure
authorThomas Monjalon <thomas@monjalon.net>
Wed, 26 Jun 2019 10:12:00 +0000 (12:12 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 27 Jun 2019 15:25:05 +0000 (17:25 +0200)
commit75683290e5ed7846b3e37d927efca68974fb3f20
tree7c1967d545a3b30db08fbfb7f2e40a8b0b56ee19
parent4142b06e2d60734eb7f6dda5edc212993c461f0a
eal/linux: fix return after alarm registration failure

When adding an alarm, if an error happen when registering
the common alarm callback, it is not considered as a major failure.
The alarm is then inserted in the list.
However it was returning an error code after inserting the alarm.

The error code is not set anymore to be consistent with the behaviour.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_eal/linux/eal/eal_alarm.c