From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] Remove n_orig from __mempool_get_bulk() routine, cleanup comment. Date: Thu, 09 Oct 2014 18:46:24 +0200 Message-ID: <3871468.xmvE5bJmrt@xps13> References: <1EEE2DAF-2F00-4B95-A1ED-262FA9E00077@windriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: "Wiles, Roger Keith" Return-path: In-Reply-To: <1EEE2DAF-2F00-4B95-A1ED-262FA9E00077-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Keith, 2014-10-03 21:27, Wiles, Roger Keith: > Cleanup the code some to remove n_orig variable that was not required. > Update the comments to __mempool_get_bulk to state the correct return value. > > Signed-off-by: Keith Wiles [...] > * @return > - * - >=0: Success; number of objects supplied. > + * - 0: Success; number of objects requested. > * - <0: Error; code of ring dequeue function. > */ > static inline int __attribute__((always_inline)) > @@ -945,9 +945,6 @@ __mempool_get_bulk(struct rte_mempool *mp, void **obj_table, > unsigned n, int is_mc) Please, could you check ret? I think it can be >0. Formatting comment: title should be mempool: remove useless variable Prefer short title, especially when behavior is not changed. Thanks -- Thomas