From: Eric Biggers Date: Mon, 23 Jul 2018 17:04:28 +0000 (-0700) Subject: crypto: scatterwalk - remove scatterwalk_samebuf() X-Git-Tag: v4.19~266^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3dd8cc00c34ab9cde4bcc808ebc607e7b9861280;p=platform%2Fkernel%2Flinux-rpi.git crypto: scatterwalk - remove scatterwalk_samebuf() scatterwalk_samebuf() is never used. Remove it. Signed-off-by: Eric Biggers Signed-off-by: Herbert Xu --- diff --git a/include/crypto/scatterwalk.h b/include/crypto/scatterwalk.h index eac7284..a66c127 100644 --- a/include/crypto/scatterwalk.h +++ b/include/crypto/scatterwalk.h @@ -30,13 +30,6 @@ static inline void scatterwalk_crypto_chain(struct scatterlist *head, sg_mark_end(head); } -static inline unsigned long scatterwalk_samebuf(struct scatter_walk *walk_in, - struct scatter_walk *walk_out) -{ - return !(((sg_page(walk_in->sg) - sg_page(walk_out->sg)) << PAGE_SHIFT) + - (int)(walk_in->offset - walk_out->offset)); -} - static inline unsigned int scatterwalk_pagelen(struct scatter_walk *walk) { unsigned int len = walk->sg->offset + walk->sg->length - walk->offset;