From: Ben Hutchings Date: Mon, 7 Feb 2011 23:04:38 +0000 (+0000) Subject: sfc: Distinguish queue lookup from test for queue existence X-Git-Tag: v2.6.39-rc1~468^2~347^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=525da9072c28df815bff64bf00f3b11ab88face8;p=pandora-kernel.git sfc: Distinguish queue lookup from test for queue existence efx_channel_get_{rx,tx}_queue() currently return NULL if the channel isn't used for traffic in that direction. In most cases this is a bug, but some callers rely on it as an existence test. Add existence test functions efx_channel_has_{rx_queue,tx_queues}() and use them as appropriate. Change efx_channel_get_{rx,tx}_queue() to assert that the requested queue exists. Remove now-redundant initialisation from efx_set_channels(). Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed