summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <jirislaby@kernel.org>2024-04-05 09:08:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-09 16:28:03 +0300
commited6d22f5d8672f38d6020c719d5d658a4e3e6be5 (patch)
tree063780eeebc5dcc0f4f2ce70ccfdd449fe4e173d /lib
parente9d9576de08ac65d2c973ef7ce542338d2da94f9 (diff)
downloadlinux-ed6d22f5d8672f38d6020c719d5d658a4e3e6be5.tar.xz
kfifo: rename l to len_to_end in setup_sgl()
So that one can make any sense of the name. Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Cc: Stefani Seibold <stefani@seibold.net> Cc: Andrew Morton <akpm@linux-foundation.org> Link: https://lore.kernel.org/r/20240405060826.2521-6-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/kfifo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kfifo.c b/lib/kfifo.c
index d5830960ab87..61e35550aea5 100644
--- a/lib/kfifo.c
+++ b/lib/kfifo.c
@@ -321,7 +321,7 @@ static unsigned int setup_sgl(struct __kfifo *fifo, struct scatterlist *sgl,
{
unsigned int size = fifo->mask + 1;
unsigned int esize = fifo->esize;
- unsigned int l;
+ unsigned int len_to_end;
unsigned int n;
off &= fifo->mask;
@@ -330,10 +330,10 @@ static unsigned int setup_sgl(struct __kfifo *fifo, struct scatterlist *sgl,
size *= esize;
len *= esize;
}
- l = min(len, size - off);
+ len_to_end = min(len, size - off);
- n = setup_sgl_buf(sgl, fifo->data + off, nents, l);
- n += setup_sgl_buf(sgl + n, fifo->data, nents - n, len - l);
+ n = setup_sgl_buf(sgl, fifo->data + off, nents, len_to_end);
+ n += setup_sgl_buf(sgl + n, fifo->data, nents - n, len - len_to_end);
return n;
}