Patchwork [virtio-9p] Fix couple functions doing "return on void functions"

login
register
mail settings
Submitter malahal@us.ibm.com
Date June 15, 2011, 4:21 a.m.
Message ID <1308111705-32631-1-git-send-email-malahal@us.ibm.com>
Download mbox | patch
Permalink /patch/100476/
State New
Headers show

Comments

malahal@us.ibm.com - June 15, 2011, 4:21 a.m.
Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
---
 hw/9pfs/virtio-9p-local.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/hw/9pfs/virtio-9p-local.c b/hw/9pfs/virtio-9p-local.c
index 1b6c323..b6643fc 100644
--- a/hw/9pfs/virtio-9p-local.c
+++ b/hw/9pfs/virtio-9p-local.c
@@ -166,7 +166,7 @@  static DIR *local_opendir(FsContext *ctx, V9fsPath *fs_path)
 
 static void local_rewinddir(FsContext *ctx, DIR *dir)
 {
-    return rewinddir(dir);
+    rewinddir(dir);
 }
 
 static off_t local_telldir(FsContext *ctx, DIR *dir)
@@ -182,7 +182,7 @@  static int local_readdir_r(FsContext *ctx, DIR *dir, struct dirent *entry,
 
 static void local_seekdir(FsContext *ctx, DIR *dir, off_t off)
 {
-    return seekdir(dir, off);
+    seekdir(dir, off);
 }
 
 static ssize_t local_preadv(FsContext *ctx, int fd, const struct iovec *iov,