Re: [fs-btrfs] question about apparent useless function call

2017-05-18 Thread David Sterba
On Wed, May 17, 2017 at 05:37:44PM -0500, Gustavo A. R. Silva wrote: > While looking into Coverity ID 1398149 I ran into the following piece > of code at fs/btrfs/zlib.c:295: > > 295done: > 296zlib_inflateEnd(&workspace->strm); > 297if (data_in) > 298kunmap(pages_

[fs-btrfs] question about apparent useless function call

2017-05-17 Thread Gustavo A. R. Silva
Hello everybody, While looking into Coverity ID 1398149 I ran into the following piece of code at fs/btrfs/zlib.c:295: 295done: 296zlib_inflateEnd(&workspace->strm); 297if (data_in) 298kunmap(pages_in[page_in_index]); 299if (!ret) 300ze