From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755061AbdESGBk (ORCPT ); Fri, 19 May 2017 02:01:40 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46640 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871AbdESGBh (ORCPT ); Fri, 19 May 2017 02:01:37 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BA1D460EC7 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [v2] mwifiex: pcie: de-duplicate buffer allocation code From: Kalle Valo In-Reply-To: <20170518163447.29496-1-briannorris@chromium.org> References: <20170518163447.29496-1-briannorris@chromium.org> To: Brian Norris Cc: Amitkumar Karwar , Nishant Sarmukadam , Ganapathi Bhat , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Norris User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20170519060136.CA44A60EC7@smtp.codeaurora.org> Date: Fri, 19 May 2017 06:01:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Brian Norris wrote: > This code was duplicated as part of the PCIe FLR code added to this > driver. Let's de-duplicate it to: > > * make things easier to read (mwifiex_pcie_free_buffers() now has a > corresponding mwifiex_pcie_alloc_buffers()) > * reduce likelihood of bugs > * make error logging equally verbose > * save lines of code! > > Also drop some of the commentary that isn't really needed. > > Signed-off-by: Brian Norris Patch applied to wireless-drivers-next.git, thanks. d41bf5c1c0ed mwifiex: pcie: de-duplicate buffer allocation code -- https://patchwork.kernel.org/patch/9734777/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches