]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Work around bogus 'uninitialised variable' warning
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 31 May 2012 23:56:22 +0000 (00:56 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Tue, 17 Jul 2012 15:12:29 +0000 (16:12 +0100)
commite9683d8dbc82ca71d4bae1b3feb3902090e15952
tree2eb316d8f187ca67fe00da9175370a45271b028a
parentc582b1153168e867cc095c23ea510c9d68b88820
sfc: Work around bogus 'uninitialised variable' warning

With some gcc versions & optimisations, the compiler will warn that
'depth' in efx_filter_insert_filter() may be used without being
initialised, although this is not the case.

This is related to inlining of efx_filter_search(), which only has
one caller since commit 9b5e759745ed2d31e0b6ffa458927d7a95a7f450
('sfc: Remove now-unused filter function').

Shut the compiler up by initialising it to 0.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/filter.c