service: remove redundant code
authorPhil Yang <phil.yang@arm.com>
Wed, 6 May 2020 15:28:02 +0000 (23:28 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 11 May 2020 11:21:54 +0000 (13:21 +0200)
commit6c8d14ffbb9a7a2a066c24554fe7c231014e7f6d
tree49faba3e0f66bf746b59b51b0eb6f99ee019d100
parent7a0ad72f6e1fc31e020af77d102dc2f1e67d52b9
service: remove redundant code

The service id validation is duplicated, remove the redundant code
in the calling functions.

Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
lib/librte_eal/common/rte_service.c