From patchwork Tue Oct 30 06:45:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honggang LI X-Patchwork-Id: 10660501 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E3EB814E2 for ; Tue, 30 Oct 2018 06:45:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C807A288F3 for ; Tue, 30 Oct 2018 06:45:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB2B929A29; Tue, 30 Oct 2018 06:45:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CEE7288F3 for ; Tue, 30 Oct 2018 06:45:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726154AbeJ3PiL (ORCPT ); Tue, 30 Oct 2018 11:38:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37574 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726136AbeJ3PiL (ORCPT ); Tue, 30 Oct 2018 11:38:11 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 722C1307D84F; Tue, 30 Oct 2018 06:45:58 +0000 (UTC) Received: from lhg.nay.redhat.com (unknown [10.66.129.124]) by smtp.corp.redhat.com (Postfix) with ESMTP id 15B061974E; Tue, 30 Oct 2018 06:45:56 +0000 (UTC) From: Honggang LI To: hal@dev.mellanox.co.il Cc: linux-rdma@vger.kernel.org, Honggang Li Subject: [PATCH 1/2] complib/cl_dispatcher.c: fix typo and delete one incorrect comment Date: Tue, 30 Oct 2018 14:45:52 +0800 Message-Id: <20181030064553.527-1-honli@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Tue, 30 Oct 2018 06:45:58 +0000 (UTC) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Honggang Li Signed-off-by: Honggang Li --- complib/cl_dispatcher.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/complib/cl_dispatcher.c b/complib/cl_dispatcher.c index 1255c830..5e8c85ab 100644 --- a/complib/cl_dispatcher.c +++ b/complib/cl_dispatcher.c @@ -85,7 +85,7 @@ void __cl_disp_worker(IN void *context) p_msg = (cl_disp_msg_t *) cl_qlist_remove_head(&p_disp->msg_fifo); - /* we track the tim ethe last message spent in the queue */ + /* we track the time the last message spent in the queue */ p_disp->last_msg_queue_time_us = cl_get_time_stamp() - p_msg->in_time; @@ -279,7 +279,6 @@ void cl_disp_unregister(IN const cl_disp_reg_handle_t handle) cl_spinlock_acquire(&p_disp->lock); /* Remove the registrant from the list. */ cl_qlist_remove_item(&p_disp->reg_list, (cl_list_item_t *) p_reg); - /* Return the registration info to the pool */ free(p_reg); cl_spinlock_release(&p_disp->lock);