From: willy tarreau Date: Thu, 16 Jan 2014 07:20:12 +0000 (+0100) Subject: net: mvneta: remove tests for impossible cases in the tx_done path X-Git-Tag: v3.14-rc1~94^2~146^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c4989748759f433bf999f33c1ff3853ed5ca945;p=pandora-kernel.git net: mvneta: remove tests for impossible cases in the tx_done path Currently, mvneta_txq_bufs_free() calls mvneta_tx_done_policy() with a non-null cause to retrieve the pointer to the next queue to process. There are useless tests on the return queue number and on the pointer, all of which are well defined within a known limited set. This code path is fast, although not critical. Removing 3 tests here that the compiler could not optimize (verified) is always desirable. Cc: Thomas Petazzoni Cc: Gregory CLEMENT Tested-by: Arnaud Ebalard Signed-off-by: Willy Tarreau Signed-off-by: David S. Miller --- Reading git-diff-tree failed