Skip to content

Commit

Permalink
libbtrfs: drop pointless assertion when reading send stream
Browse files Browse the repository at this point in the history
Commit bf0f3db ("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>
  • Loading branch information
kdave committed Aug 14, 2024
1 parent d7bd967 commit f04463e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libbtrfs/send-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f04463e

Please sign in to comment.