libbtrfs: drop pointless assertion when reading send stream

Commit bf0f3db765 ("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 <dsterba@suse.com>
This commit is contained in:
David Sterba 2024-08-06 14:07:46 +02:00
parent d7bd967a78
commit f04463e03b
1 changed files with 0 additions and 2 deletions

View File

@ -26,7 +26,6 @@
#include "libbtrfs/send-stream.h" #include "libbtrfs/send-stream.h"
#include "libbtrfs/ctree.h" #include "libbtrfs/ctree.h"
#include "libbtrfs/crc32c.h" #include "libbtrfs/crc32c.h"
#include "common/messages.h"
struct btrfs_send_stream { struct btrfs_send_stream {
char read_buf[BTRFS_SEND_BUF_SIZE]; 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)); 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)); ret = read_buf(sctx, sctx->read_buf, sizeof(*sctx->cmd_hdr));
if (ret < 0) if (ret < 0)
goto out; goto out;