diff options
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r-- | fs/fuse/dev.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 6cb0b0b..2014cee 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -319,12 +319,7 @@ static unsigned len_args(unsigned numargs, struct fuse_arg *args) static u64 fuse_get_unique(struct fuse_conn *fc) { - fc->reqctr++; - /* zero is special */ - if (fc->reqctr == 0) - fc->reqctr = 1; - - return fc->reqctr; + return ++fc->reqctr; } static void queue_request(struct fuse_conn *fc, struct fuse_req *req) |