Skip to contentSkip to conversation

9pfs: remove useless return

PATCH New Michael Tokarev 1 participant 1 message Mar 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 9pfs: remove useless return

---
 hw/9pfs/virtio-9p-local.c | 1 -
 1 file changed, 1 deletion(-)
hw/9pfs/virtio-9p-local.c +0 -1
index a183eee..d05c917 100644
@@ -328,15 +328,14 @@ static ssize_t local_readlink(FsContext *fs_ctx, V9fsPath *fs_path,
         if (fd == -1) {
             return -1;
         }
         do {
             tsize = read(fd, (void *)buf, bufsz);
         } while (tsize == -1 && errno == EINTR);
         close(fd);
-        return tsize;
     } else if ((fs_ctx->export_flags & V9FS_SM_PASSTHROUGH) ||
                (fs_ctx->export_flags & V9FS_SM_NONE)) {
         buffer = rpath(fs_ctx, path);
         tsize = readlink(buffer, buf, bufsz);
         g_free(buffer);
     }
     return tsize;
Signature · 1 line
2.1.4