From 27ec04e7c31ee224b9d97e7146fb05e7b814c465 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Thu, 27 Oct 2011 16:05:00 -0700 Subject: [PATCH] cfuse: remove unneeded loop. The only time this was looping previously was completely unnecessary anyway, as 1 meant the same thing as 0: there are no more dentries remaining. Signed-off-by: Greg Farnum --- src/client/fuse_ll.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc index aeaceec3f107a..2c766c22f96af 100644 --- a/src/client/fuse_ll.cc +++ b/src/client/fuse_ll.cc @@ -421,9 +421,7 @@ static void ceph_ll_readdir(fuse_req_t req, fuse_ino_t ino, size_t size, rc.snap = fino_snap(ino); int r; - do { - r = client->readdir_r_cb(dirp, ceph_ll_add_dirent, &rc); - } while (r > 0); + r = client->readdir_r_cb(dirp, ceph_ll_add_dirent, &rc); fuse_reply_buf(req, rc.buf, rc.pos); delete[] rc.buf; -- 2.39.5