forcedeth: optimize the xmit with unlikely
authorZhu Yanjun <yanjun.zhu@oracle.com>
Tue, 28 Nov 2017 06:42:22 +0000 (01:42 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Nov 2017 14:35:03 +0000 (09:35 -0500)
commitb78a6aa3876bdd0aa819eb1738caa6d74867b94e
tree7adbdbcd90d2eae81111eff4e902c8ff91cd5690
parentd750dbdc071bf863112ea83c64cd7c44d4bad261
forcedeth: optimize the xmit with unlikely

In xmit, it is very impossible that TX_ERROR occurs. So using
unlikely optimizes the xmit process.

CC: Srinivas Eeda <srinivas.eeda@oracle.com>
CC: Joe Jin <joe.jin@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/nvidia/forcedeth.c