diff --git a/targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c b/targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c
index 7278c2727dddd79c9e6f3b1df9f891db6e4f7125..4cf04064b156f439698c964da8bd13041eba9aab 100644
--- a/targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c
+++ b/targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c
@@ -418,7 +418,6 @@ int trx_eth_read_raw_IF4p5(openair0_device *device, openair0_timestamp *timestam
 int trx_eth_read_raw_IF5_mobipass(openair0_device *device, openair0_timestamp *timestamp, void **buff, int nsamps, int cc) {
   // Read nblocks info from packet itself
   
-  int nblocks = nsamps;
   int bytes_received=0;
   eth_state_t *eth = (eth_state_t*)device->priv;