From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933306AbcKJNfz (ORCPT ); Thu, 10 Nov 2016 08:35:55 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:48442 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932825AbcKJNfx (ORCPT ); Thu, 10 Nov 2016 08:35:53 -0500 Date: Thu, 10 Nov 2016 14:35:59 +0100 From: Greg Kroah-Hartman To: Masahiro Yamada Cc: linux-mmc@vger.kernel.org, Jarkko Lavinen , Rui Miguel Silva , linux-kernel@vger.kernel.org, Nicolas Pitre , devel@driverdev.osuosl.org, Jaehoon Chung , Pierre Ossman , Johan Hovold , Alex Dubov , Matthias Brugger , Tony Olech , Adrian Hunter , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Sascha Sommer , adi-buildroot-devel@lists.sourceforge.net, Ben Dooks , Alex Elder , linux-mediatek@lists.infradead.org, Wolfram Sang , Tony Prisk , linux-omap@vger.kernel.org, Manuel Lauss , Russell King , linux-arm-kernel@lists.infradead.org, Ulf Hansson , Ludovic Desroches , linux-usb@vger.kernel.org, Bruce Chang , Sonic Zhang , Harald Welte , Chen-Yu Tsai , Maxime Ripard Subject: Re: [PATCH 0/2] mmc: allow mmc_alloc_host() and tmio_mmc_host_alloc() 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-Disposition: inline In-Reply-To: <1478784263-18777-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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