]> git.baikalelectronics.ru Git - kernel.git/commit
filter: cleanup codes[] init
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 18 Nov 2010 21:56:38 +0000 (21:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Nov 2010 18:04:23 +0000 (10:04 -0800)
commit0a3b98130b5cc488150bc0063c72d00a0fedcd99
tree1c1d7abe548c92839c55cfe0f0a3745e7ddd3b78
parentafaaffb89f4cb1c6e66194af61c6e87cca40d376
filter: cleanup codes[] init

Starting the translated instruction to 1 instead of 0 allows us to
remove one descrement at check time and makes codes[] array init
cleaner.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c