]> git.baikalelectronics.ru Git - kernel.git/commit
sunvnet: remove unused variable in maybe_tx_wakeup
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Mon, 13 Feb 2017 18:56:58 +0000 (10:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 18:04:09 +0000 (13:04 -0500)
commit7ad6aaf41f7a74f2bf36a82adc97820d25b9d02d
treedcef23444a97afc36f4808ca596793f46137ea57
parent70d1483e007751a48a97309e1191bb5bf5068bee
sunvnet: remove unused variable in maybe_tx_wakeup

The vio_dring_state *dr variable is unused in maybe_tx_wakeup().
As the comments indicate, we call maybe_tx_wakeup() whenever we
get a STOPPED LDC message on the port. If the queue is stopped,
we want to wake it up so that we will send another START message
at the next TX and trigger the consumer to drain the dring.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunvnet_common.c