]> git.ipfire.org Git - thirdparty/qemu.git/commit
dp8393x: Have dp8393x_receive() return the packet size
authorFinn Thain <fthain@telegraphics.com.au>
Wed, 29 Jan 2020 09:27:49 +0000 (20:27 +1100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 2 Jun 2020 15:39:15 +0000 (10:39 -0500)
commit153c3320e77cfcafc5a44d01d6fb7905121a8fd7
tree57dc1196f6ef47923f1e0b2b4cc7300e7dc5c3c5
parentbf3f12ac8c34e4856f48c5f7ee7d23c042097797
dp8393x: Have dp8393x_receive() return the packet size

This function re-uses its 'size' argument as a scratch variable.
Instead, declare a local 'size' variable for that purpose so that the
function result doesn't get messed up.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Jason Wang <jasowang@redhat.com>
(cherry picked from commit 9e3cd456d85ad45e72bdba99203302342ce29b3b)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/net/dp8393x.c