diff options
author | Christoph Hellwig <hch@lst.de> | 2021-10-20 17:38:12 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-20 17:40:54 +0300 |
commit | 39fa7a95552cc851029267b97c1317f1dea61cad (patch) | |
tree | 46138a62895d4806fa507f7724e85e69158f45b1 /drivers/md/bcache/util.h | |
parent | 00387bd21dac98f9e793294c895768d9e5441f82 (diff) | |
download | linux-39fa7a95552cc851029267b97c1317f1dea61cad.tar.xz |
bcache: remove bch_crc64_update
bch_crc64_update is an entirely pointless wrapper around crc64_be.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20211020143812.6403-9-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/util.h')
-rw-r--r-- | drivers/md/bcache/util.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/md/bcache/util.h b/drivers/md/bcache/util.h index b64460a76267..6274d6a17e5e 100644 --- a/drivers/md/bcache/util.h +++ b/drivers/md/bcache/util.h @@ -548,14 +548,6 @@ static inline uint64_t bch_crc64(const void *p, size_t len) return crc ^ 0xffffffffffffffffULL; } -static inline uint64_t bch_crc64_update(uint64_t crc, - const void *p, - size_t len) -{ - crc = crc64_be(crc, p, len); - return crc; -} - /* * A stepwise-linear pseudo-exponential. This returns 1 << (x >> * frac_bits), with the less-significant bits filled in by linear |