From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Subject: Re: [PATCH 0/2] mmc: allow mmc_alloc_host() and tmio_mmc_host_alloc() Date: Thu, 10 Nov 2016 14:35:59 +0100 Message-ID: <20161110133559.GA10191@kroah.com> References: <1478784263-18777-1-git-send-email-yamada.masahiro@socionext.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1478784263-18777-1-git-send-email-yamada.masahiro@socionext.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" To: Masahiro Yamada Cc: Ulf Hansson , Adrian Hunter , Wolfram Sang , Sascha Sommer , Johan Hovold , Sonic Zhang , devel@driverdev.osuosl.org, Russell King , Jaehoon Chung , Chen-Yu Tsai , Pierre Ossman , Harald Welte , Alex Dubov , adi-buildroot-devel@lists.sourceforge.net, =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , linux-mediatek@lists.infradead.org, Ben Dooks , Tony Olech , Matthias Brugger , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nicolas Pitre , linux-usb@vger.kernel.org, linux-mm List-Id: linux-omap@vger.kernel.org On Thu, Nov 10, 2016 at 10:24:21PM +0900, Masahiro Yamada wrote: > > sdhci_alloc_host() returns an error pointer when it fails. > but mmc_alloc_host() cannot. > > This series allow to propagate a proper error code > when host-allocation fails. Why? What can we really do about the error except give up? Why does having a explicit error value make any difference to the caller, they can't do anything different, right? I suggest just leaving it as-is, it's simple, and you don't have to mess with PTR_ERR() anywhere. thanks, greg k-h