Thread (3 messages) 3 messages, 3 authors, 2021-08-26

Re: [PATCH v3] btrfs: reflink: Initialize return value to 0 in btrfs_extent_same()

From: David Sterba <hidden>
Date: 2021-08-26 15:20:48

On Thu, Aug 26, 2021 at 02:44:36PM +0000, Sidong Yang wrote:
This patch fixes a warning reported by smatch. It reported that ret
could be returned without initialized. 0 would be proper value for
initializing ret. Because dedupe operations are supposed to to return
0 for a 0 length range.

Signed-off-by: Sidong Yang <redacted>
---
v2:
 - Removed assert and added initializing ret
v3:
 - Changed initializing value to 0
I've slightly rephrased the changelog, added to misc-next, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help