aboutsummaryrefslogtreecommitdiff
path: root/fsdev
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2016-09-16 08:56:15 +0200
committerGreg Kurz <groug@kaod.org>2016-09-16 08:56:15 +0200
commitabdf008640b7ff59ac4c08c85f76ed861290c60e (patch)
treef4e48252299a36c4abbcdeb4ecc36925631c6f65 /fsdev
parentda4bc86c540991902e32e4e840c6ada573240254 (diff)
downloadqemu-abdf008640b7ff59ac4c08c85f76ed861290c60e.zip
qemu-abdf008640b7ff59ac4c08c85f76ed861290c60e.tar.gz
qemu-abdf008640b7ff59ac4c08c85f76ed861290c60e.tar.bz2
9pfs: drop useless v9fs_string_null() function
The v9fs_string_null() function just calls v9fs_string_free(). Also it only has 4 users, whereas v9fs_string_free() has 87. This patch converts users to call directly v9fs_string_free() and drops the useless function. Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'fsdev')
-rw-r--r--fsdev/9p-marshal.c5
-rw-r--r--fsdev/9p-marshal.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/fsdev/9p-marshal.c b/fsdev/9p-marshal.c
index 238dbf2..a01bba6 100644
--- a/fsdev/9p-marshal.c
+++ b/fsdev/9p-marshal.c
@@ -25,11 +25,6 @@ void v9fs_string_free(V9fsString *str)
str->size = 0;
}
-void v9fs_string_null(V9fsString *str)
-{
- v9fs_string_free(str);
-}
-
void GCC_FMT_ATTR(2, 3)
v9fs_string_sprintf(V9fsString *str, const char *fmt, ...)
{
diff --git a/fsdev/9p-marshal.h b/fsdev/9p-marshal.h
index 140db6d..77f7fef 100644
--- a/fsdev/9p-marshal.h
+++ b/fsdev/9p-marshal.h
@@ -77,7 +77,6 @@ static inline void v9fs_string_init(V9fsString *str)
str->size = 0;
}
extern void v9fs_string_free(V9fsString *str);
-extern void v9fs_string_null(V9fsString *str);
extern void v9fs_string_sprintf(V9fsString *str, const char *fmt, ...);
extern void v9fs_string_copy(V9fsString *lhs, V9fsString *rhs);