mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-26 21:54:31 +08:00
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:
parent
d7bd967a78
commit
f04463e03b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user