cadence_gem: factor out can_rx() logic replication
commit1c5d07909aea7657c7c6b24223460150526369ba
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Thu, 28 Feb 2013 18:23:15 +0000 (28 18:23 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 28 Feb 2013 18:49:24 +0000 (28 18:49 +0000)
tree58676fcdb2864ffb157209fea5567d8e25f68e43
parente3f9d31c9899cc94e124b042d7d5353dbfd812ca
cadence_gem: factor out can_rx() logic replication

The gem_receive() function replicates the logic for whether or not the device
can rx. Just call the actual gem_can_receive() function in place.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: bf7f93969f3e01fbc76d68d2955307fdbad11bb1.1360901435.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/cadence_gem.c