From b5cd42e103a30fed48a74bca7a444c95f7092245 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 18 Aug 2020 20:02:27 -0700 Subject: [PATCH] Remove an unused function from the iSER code This was detected by clang. Fixes: 68ce3363aa85 ("iser: dynamic memory region allocator") Signed-off-by: Bart Van Assche --- lib/iser.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/iser.c b/lib/iser.c index 3978306..a927338 100644 --- a/lib/iser.c +++ b/lib/iser.c @@ -204,12 +204,6 @@ iser_buf_chunk_alloc(struct iser_buf_chunk *chunk, int want) { return result; } -static inline int -iser_buf_chunk_contains(struct iser_buf_chunk *chunk, void *ptr) { - return ((unsigned char *)ptr >= chunk->buf && - (unsigned char *)ptr < chunk->buf + DATA_BUFFER_CHUNK_SIZE); -} - static void iser_tx_desc_free(struct iscsi_context *iscsi, struct iser_tx_desc *tx_desc) {