OSDN Git Service

Small optimization while removing warning
authorVictor Toso <me@victortoso.com>
Mon, 18 Dec 2017 15:01:24 +0000 (16:01 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 10 Jan 2018 01:12:43 +0000 (09:12 +0800)
commit6c1b9b345982babde748518de1834e2af8bcf321
tree2dd778f4939ce34a12988a566f8eaebbd634fc2e
parentf6e214976e209a409522267bc5b1b26113f58b59
Small optimization while removing warning

Removed the helper array and its initialization loop as we can achieve the
same with two variables in one loop.

This patch also removes the warning below:

> gen8_mfc.c:2735:9: warning: variable 'i' is incremented both in the loop
> header and in the loop body [-Wfor-loop-analysis]
>         i++;
>         ^
> gen8_mfc.c:2732:25: note: incremented here
>     for (i = 0; i < 64; i++) {
>                         ^

Signed-off-by: Victor Toso <victortoso@redhat.com>
src/gen8_mfc.c