diff mbox series

[1/2] complib/cl_dispatcher.c: fix typo and delete one incorrect comment

Message ID 20181030064553.527-1-honli@redhat.com (mailing list archive)
State Not Applicable
Headers show
Series [1/2] complib/cl_dispatcher.c: fix typo and delete one incorrect comment | expand

Commit Message

Honggang LI Oct. 30, 2018, 6:45 a.m. UTC
From: Honggang Li <honli@redhat.com>

Signed-off-by: Honggang Li <honli@redhat.com>
---
 complib/cl_dispatcher.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Hal Rosenstock Oct. 30, 2018, 12:46 p.m. UTC | #1
On 10/30/2018 2:45 AM, Honggang LI wrote:
> From: Honggang Li <honli@redhat.com>
> 
> Signed-off-by: Honggang Li <honli@redhat.com>

Thanks. Applied.

-- Hal
diff mbox series

Patch

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);