From: zhang.zezhu Date: Thu, 28 Jul 2016 01:47:37 +0000 (+0000) Subject: msg/simple/Pipe: eliminating casts for the comparing of len and recv_max_prefetch X-Git-Tag: ses5-milestone5~266^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10273%2Fhead;p=ceph.git msg/simple/Pipe: eliminating casts for the comparing of len and recv_max_prefetch Signed-off-by: zhang.zezhu --- diff --git a/src/msg/simple/Pipe.cc b/src/msg/simple/Pipe.cc index 835868a3685..e00965eba10 100644 --- a/src/msg/simple/Pipe.cc +++ b/src/msg/simple/Pipe.cc @@ -2554,7 +2554,7 @@ ssize_t Pipe::buffered_recv(char *buf, size_t len, int flags) /* nothing left in the prefetch buffer */ - if (len > (size_t)recv_max_prefetch) { + if (len > recv_max_prefetch) { /* this was a large read, we don't prefetch for these */ ssize_t ret = do_recv(buf, left, flags ); if (ret < 0) {