fix a few cppcheck errors.

Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
17 jobs for <span class="ref-name">develop_integration_2019_w17</span> in 0 seconds (queued for 13 minutes and 25 seconds)
Status Job ID Name Coverage
  External
passed Analysis with cppcheck

00:01:55

passed Build UE-ethernet

00:04:40

passed Build basic-sim

00:00:03

passed Build eNb-USRP

00:00:42

passed Build eNb-ethernet

00:02:39

passed Build phy-sim

00:04:24

passed Test L1-sim

00:00:00

failed Test L2-sim

00:18:11

passed Test RF-sim

00:00:00

passed Test basic-sim

00:13:26

passed Test phy-sim

00:09:58

failed Test-IF4p5-FDD-Band7

01:42:03

passed Test-IF4p5-TDD-Band40

00:22:38

passed Test-Mono-FDD-Band13

00:07:36

passed Test-Mono-FDD-Band7

00:48:23

passed Test-Mono-TDD-Band40

01:18:53

passed Test-eNB-OAI-UE-FDD-Band7

01:45:11