9pfs: avoid sign conversion error simplifying the code
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 9 Aug 2017 14:32:46 +0000 (16:32 +0200)
committerGreg Kurz <groug@kaod.org>
Tue, 5 Sep 2017 12:01:16 +0000 (14:01 +0200)
commit403a905b03d48187df1e1392bfa3e303eeefe892
tree080d61b54cab87d7b2c930ac666ba11f6a99cc82
parent53e2c48d3f0db6a1598f49baf0b56dd4975e53a7
9pfs: avoid sign conversion error simplifying the code

(note this is how other functions also handle the errors).

hw/9pfs/9p.c:948:18: warning: Loss of sign in implicit conversion
        offset = err;
                 ^~~

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Greg Kurz <groug@kaod.org>
hw/9pfs/9p.c