From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C06DEC43461 for ; Thu, 10 Sep 2020 09:06:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F247207DE for ; Thu, 10 Sep 2020 09:06:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730211AbgIJJGz (ORCPT ); Thu, 10 Sep 2020 05:06:55 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:55600 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726474AbgIJJGy (ORCPT ); Thu, 10 Sep 2020 05:06:54 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 9C3B8853F2AA88842628; Thu, 10 Sep 2020 17:06:49 +0800 (CST) Received: from huawei.com (10.175.104.175) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Thu, 10 Sep 2020 17:06:39 +0800 From: Miaohe Lin To: , , , , , CC: , Subject: [PATCH] lib: Fix some broken comments Date: Thu, 10 Sep 2020 05:05:24 -0400 Message-ID: <20200910090524.5147-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.104.175] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix some weird and confusing comments. Signed-off-by: Miaohe Lin --- lib/checksum.c | 2 +- lib/refcount.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/checksum.c b/lib/checksum.c index c7861e84c526..cd0175c6a355 100644 --- a/lib/checksum.c +++ b/lib/checksum.c @@ -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) diff --git a/lib/refcount.c b/lib/refcount.c index ebac8b7d15a7..39e179ed2c58 100644 --- a/lib/refcount.c +++ b/lib/refcount.c @@ -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. -- 2.19.1