dm: remove impossible BUG_ON in __send_empty_flush
authorMike Snitzer <snitzer@redhat.com>
Fri, 18 Feb 2022 04:40:16 +0000 (23:40 -0500)
committerMike Snitzer <snitzer@redhat.com>
Mon, 21 Feb 2022 20:36:26 +0000 (15:36 -0500)
commit5b27b8ddbf37962fae8131cf595231b1be2c2b27
treea72d640bd8be3defd387b96d45b44dabaf9b97e5
parent90a2326edede9e801e45c24b3c71f3092b279b66
dm: remove impossible BUG_ON in __send_empty_flush

The flush_bio in question was just initialized to be empty, so there
is no way bio_has_data() will return true.  So remove stale BUG_ON().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c