Skip to content

Commit a8d8980

Browse files
Viral MehtaJiri Kosina
authored andcommitted
kfifo: fix kerneldoc for kfifo_avail and kfifo_in_locked
Function argument is not having "len" anywhere; "len" is later used in kfifo_{in|out}. So here, it would be appropriate to say, it copies @n bytes and not @len Signed-off-by: Viral Mehta <viral.mehta@lntinfotech.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 9c5fb19 commit a8d8980

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/kfifo.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static inline __must_check unsigned int kfifo_avail(struct kfifo *fifo)
202202
* @n: the length of the data to be added.
203203
* @lock: pointer to the spinlock to use for locking.
204204
*
205-
* This function copies at most @len bytes from the @from buffer into
205+
* This function copies at most @n bytes from the @from buffer into
206206
* the FIFO depending on the free space, and returns the number of
207207
* bytes copied.
208208
*/
@@ -228,7 +228,7 @@ static inline unsigned int kfifo_in_locked(struct kfifo *fifo,
228228
* @n: the size of the destination buffer.
229229
* @lock: pointer to the spinlock to use for locking.
230230
*
231-
* This function copies at most @len bytes from the FIFO into the
231+
* This function copies at most @n bytes from the FIFO into the
232232
* @to buffer and returns the number of copied bytes.
233233
*/
234234
static inline __must_check unsigned int kfifo_out_locked(struct kfifo *fifo,

0 commit comments

Comments
 (0)