From f04463e03bbef28ef76a48cb61109cab0278cbf1 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 6 Aug 2024 14:07:46 +0200 Subject: [PATCH] libbtrfs: drop pointless assertion when reading send stream Commit bf0f3db7657760 ("btrfs-progs: introduce UASSERT() for purely userspace code") added UASERT to distinguish ASSERT macro from user space code. This was wrongly added to libbtrfs/ and pulled the common/messages.h include too. Signed-off-by: David Sterba --- libbtrfs/send-stream.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libbtrfs/send-stream.c b/libbtrfs/send-stream.c index ff180886..96d1698b 100644 --- a/libbtrfs/send-stream.c +++ b/libbtrfs/send-stream.c @@ -26,7 +26,6 @@ #include "libbtrfs/send-stream.h" #include "libbtrfs/ctree.h" #include "libbtrfs/crc32c.h" -#include "common/messages.h" struct btrfs_send_stream { char read_buf[BTRFS_SEND_BUF_SIZE]; @@ -109,7 +108,6 @@ static int read_cmd(struct btrfs_send_stream *sctx) memset(sctx->cmd_attrs, 0, sizeof(sctx->cmd_attrs)); - UASSERT(sizeof(*sctx->cmd_hdr) <= sizeof(sctx->read_buf)); ret = read_buf(sctx, sctx->read_buf, sizeof(*sctx->cmd_hdr)); if (ret < 0) goto out;