summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-05-14 14:24:25 +0300
committerDavid Sterba <dsterba@suse.com>2025-05-15 19:24:44 +0300
commit1ce06d45d92242ffd9c576b736e1e755531fe6dd (patch)
treeb495182a3c569a17fec71691424e10779d335e3d /scripts/lib/kdoc/kdoc_parser.py
parentd8cddf2a1d71ab9dea59822ccb9bbb780f50ce0a (diff)
downloadlinux-1ce06d45d92242ffd9c576b736e1e755531fe6dd.tar.xz
btrfs: use a single variable to track return value at btrfs_page_mkwrite()
We have two variables to track return values, ret and ret2, with types vm_fault_t (an unsigned int type) and int, which makes it a bit confusing and harder to keep track. So use a single variable, of type int, and under the 'out' label return vmf_error(ret) in case ret contains an error, otherwise return VM_FAULT_NOPAGE. This is equivalent to what we had before and it's simpler. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions