summary refs log tree commit diff stats
path: root/block/nfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/nfs.c')
-rw-r--r--block/nfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/block/nfs.c b/block/nfs.c
index b86ba5bfa1..385d756e1d 100644
--- a/block/nfs.c
+++ b/block/nfs.c
@@ -620,8 +620,7 @@ static int nfs_file_open(BlockDriverState *bs, QDict *options, int flags,
     }
 
     bs->total_sectors = ret;
-    ret = 0;
-    return ret;
+    return 0;
 }
 
 static QemuOptsList nfs_create_opts = {