Skip to contentSkip to conversation

btrfs: fix kernel test bot warnings

PATCH In review Sun YangKai 2 participants 2 messages Aug 30, 2025 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: fix kernel test bot warnings

Fixes 2d6338c69725 ("btrfs: more trivial BTRFS_PATH_AUTO_FREE conversions")
---
 fs/btrfs/scrub.c | 2 +-
 fs/btrfs/send.c  | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)
fs/btrfs/scrub.c +1 -1
index d8c36cbf423d..9159e3a8af17 100644
@@ -612,7 +612,7 @@ static void scrub_print_common_warning(const char *errstr, struct btrfs_device *
 	ret = extent_from_logical(fs_info, swarn.logical, path, &found_key,
 				  &flags);
 	if (ret < 0)
-		return ret;
+		return;
 
 	swarn.extent_item_size = found_key.offset;
 
fs/btrfs/send.c +0 -2
index 6811eeb96490..69cf124674d7 100644
@@ -1771,7 +1771,6 @@ static int gen_unique_name(struct send_ctx *sctx,
 			   u64 ino, u64 gen,
 			   struct fs_path *dest)
 {
-	int ret = 0;
 	BTRFS_PATH_AUTO_FREE(path);
 	struct btrfs_dir_item *di;
 	char tmp[64];
@@ -1806,7 +1805,6 @@ static int gen_unique_name(struct send_ctx *sctx,
 
 		if (!sctx->parent_root) {
 			/* unique */
-			ret = 0;
 			break;
 		}
 
Signature · 1 line
2.50.1