eal/linux: remove useless unlock of hugepage when clearing
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 25 Apr 2018 10:08:13 +0000 (11:08 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 25 Apr 2018 10:41:55 +0000 (12:41 +0200)
commit4754ceaa09f4b77facde941a9a35414d0cd732bb
tree8547dddcf3eef6cf8d7691bd10e6ad9459cbe7ff
parenta017313980787cb3e0ed6029011a6274512ee239
eal/linux: remove useless unlock of hugepage when clearing

Coverity was complaining about not checking result of call to
fcntl() for unlocking the file. Disregarding the fact that error
value returned from fcntl() unlock call is highly unlikely in the
first place, we are subsequently calling close() on that same fd,
which will drop the lock, which makes call to fcntl() unnecessary.

Fix this by removing a call to fcntl() altogether.

Coverity issue: 272607
Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_hugepage_info.c