Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752126AbbKZG0j (ORCPT ); Thu, 26 Nov 2015 01:26:39 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:33980 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751224AbbKZG0i (ORCPT ); Thu, 26 Nov 2015 01:26:38 -0500 Date: Thu, 26 Nov 2015 11:56:28 +0530 From: Sudip Mukherjee To: Alexander Kuleshov Cc: Lidza Louina , devel@driverdev.osuosl.org, Greg Kroah-Hartman , Daeseok Youn , driverdev-devel@linuxdriverproject.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging/dgap: move duplicated code from the dgap_cm.* functions Message-ID: <20151126062628.GA1477@sudip-pc> References: <1448457030-28027-1-git-send-email-kuleshovmail@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1448457030-28027-1-git-send-email-kuleshovmail@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 702 Lines: 18 On Wed, Nov 25, 2015 at 07:10:30PM +0600, Alexander Kuleshov wrote: > The dgap driver contains three functions: dgap_cmdb(), dgap_cmdw() > and dgap_cmdw_exit which are contain duplicated code which waits > if necessary before updating the pointer to limit outstanding > commands. This patch introduces the wait_for_fep_cmds_limit() > function which is will be called from these functions to prevent > code duplication. > --- Signed-off-by ? regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/