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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Honggang Li <honli@xxxxxxxxxx>

Signed-off-by: Honggang Li <honli@xxxxxxxxxx>
---
 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);
-- 
2.14.4




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux