lib: Fix some broken comments
PATCH 1/1 lib: Fix some broken comments
Fix some weird and confusing comments.
Signed-off-by Miaohe Lin <[email protected]>
--- lib/checksum.c | 2 +- lib/refcount.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
lib/checksum.c +1 -1
@@ -146,7 +146,7 @@ __sum16 ip_compute_csum(const void *buff, int len)EXPORT_SYMBOL (ip_compute_csum);/* -* copy from ds while checksumming, otherwise like csum_partial +* copy from src while checksumming, otherwise like csum_partial */ __wsum csum_partial_copy_nocheck (const void *src,void *dst,int len,__wsum sum)
lib/refcount.c +1 -1
@@ -161,7 +161,7 @@ EXPORT_SYMBOL(refcount_dec_and_lock);* interrupts if able to decrement refcount to 0 * @r: the refcount * @lock: the spinlock to be locked -* @flags: saved IRQ-flags if the is acquired +* @flags: saved IRQ-flags if the @lock is acquired * * Same as refcount_dec_and_lock() above except that the spinlock is acquired * with disabled interupts.
Signature · 1 line
2.19.1
Quoted 3 lines · Miaohe Lin
Fix some weird and confusing comments.
Signed-off-by Miaohe Lin <[email protected]>
Reviewed-by Kees Cook <[email protected]>
Signature · 1 line
Kees Cook