1
0
Fork 0

ivshmem-net: Silence compiler warning

At least Linaro's gcc 6.3 does not see the initialization and usage
dependency of fhead and num. Let's silence this false positive.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
(cherry picked from commit 4d067d37d835c35e8f85481b97c51f20b713ae71)
5.4-rM2-2.2.x-imx-squashed
Jan Kiszka 2017-10-03 12:24:59 +02:00 committed by Dong Aisheng
parent 0de9da4365
commit a9a6524d83
1 changed files with 1 additions and 0 deletions

View File

@ -356,6 +356,7 @@ static void ivshm_net_tx_clean(struct net_device *ndev)
last = tx->last_used_idx;
fdesc = NULL;
fhead = 0;
num = 0;
while (last != used_idx) {