syscall: really return ret code
authorJuan Quintela <quintela@redhat.com>
Thu, 16 Jun 2011 16:37:09 +0000 (17:37 +0100)
committerRiku Voipio <riku.voipio@iki.fi>
Tue, 21 Jun 2011 17:30:09 +0000 (20:30 +0300)
commit8d244c080cb113d5592a1065590c19e3f486307f
tree0a6dc9b277cb57e1b08b3d3136ab4864ec460da3
parent3f722bc50949cf48a2d1ca0765b6d329c84dd20b
syscall: really return ret code

We assign ret with the error code, but then return 0 unconditionally.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
linux-user/syscall.c