9pfs: Fix some return statements in the synth backend
authorGreg Kurz <groug@kaod.org>
Thu, 24 Nov 2022 15:58:38 +0000 (16:58 +0100)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Fri, 23 Dec 2022 10:48:13 +0000 (11:48 +0100)
commitab04d2c5579f706893aa014b04296249a0ae8587
treed06b07e592daef2c7f4356603fc55fa4d241413f
parent222059a0fccf4af3be776fe35a5ea2d6a68f9a0b
9pfs: Fix some return statements in the synth backend

The qemu_v9fs_synth_mkdir() and qemu_v9fs_synth_add_file() functions
currently return a positive errno value on failure. This causes
checkpatch.pl to spit several errors like the one below:

ERROR: return of an errno should typically be -ve (return -EAGAIN)
+        return EAGAIN;

Simply change the sign. This has no consequence since callers
assert() the returned value to be equal to 0.

Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <166930551818.827792.10663674346122681963.stgit@bahia>
[C.S.: - Resolve conflict with 66997c42e02c. ]
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
hw/9pfs/9p-synth.c