Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4801432imm; Mon, 15 Oct 2018 23:32:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV61fTNyM7IWeMV+fXpFPkPOOZ7RqHROSKSzcbll9BdjxbRe5AXEtWR4xesHGvoNBusBTNAN2 X-Received: by 2002:a62:8708:: with SMTP id i8-v6mr20820083pfe.150.1539671562559; Mon, 15 Oct 2018 23:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539671562; cv=none; d=google.com; s=arc-20160816; b=v5JWLvYFkPDVrKvv21p5vPvHiL1tyQCrWZ4NMnSpKoevlAxX8zcTJ5ze2JSnFetzJq Gg2cVSySS/cHPx3eJhqwzSrm2FlL1WquqZpTHhGyp4vlDqHr0zf70rrWJ9PB6w6OWlgP ez5Yn/yJERdZg/GyDnD6w0kkM1BhI0NbdFoDBcMnYk0JPhgrH1WgJEzEFWgbui6OKhVS q03msI4pGmGr8cZBmM9d1k+LGgvbatn7oa3VoKTdHE8AeLgH+bZnFEvSFHb3hpgvieJa EYMTzyxdAMK+SWNWIPl9vZZf/bITSDgPoqVAUYS9CQOIXEnlUuly/rQ7CJ7/jJsPb9IN 95+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=glj4H0g9JzOxWJsl6ljomxYOQBC4Ip1eWZc2jpz8CSA=; b=0tYPH14oGClg0So2q4QTV9GKE1VvLC1/gnC+gOryPgEMRuUIqAQ+LSG74I9eXePWCj Rkpd+aYbFCgwq4hhelhLZL8Nyo4RhGrlZ9Ub4rrAROKU9OqXsrVIvyzf+YiAlKUKzQlt p8IifR5LmQ3jzHJy5VOVn4jVhIJDrjh0BEh9tJR8WIAtTtTh9+XRHvsF823D4pnb7k2U 4KiZeqdv+G5+zmHYpYGOjx6OtnKHnG+pqLpluBqQlk5fYVAnFnPPsQ9h5fOll+ph59Od qyU4mgNiLr/+Pik6C0cdoSor+8bsdVtwh/uxeyh5FZAv+hMFc18LMLwinIbFhUMvrvpF Cdyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AYLkejN+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e39-v6si13097221plg.188.2018.10.15.23.32.26; Mon, 15 Oct 2018 23:32:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AYLkejN+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727503AbeJPOTY (ORCPT + 99 others); Tue, 16 Oct 2018 10:19:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:41836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727174AbeJPOTY (ORCPT ); Tue, 16 Oct 2018 10:19:24 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2C201208B3; Tue, 16 Oct 2018 06:30:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539671430; bh=Ge8s/Dq5YcJ/53G9YIBTAfEdxSrRs4heXdL2r3Q9N9g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AYLkejN+l865Gd1reee2iOEXE+1QDdD7DziAVe+8cBFLGhZD4bGXuvYu51KM0oeEM /8xLv33AI5RXIWTXdNaU7WZJZ79TIwLxGpNBUGuuePF176Gvf4c5el6IPCfTtATGGC eSdlxeV0RfYqZu2IV/j4fyy2uZIL61p1ocmW3/Z0= Date: Tue, 16 Oct 2018 08:30:28 +0200 From: Greg KH To: Roman Kiryanov Cc: linux-kernel@vger.kernel.org, Todd Kjos Subject: Re: [PATCH v3 07/15] platform: goldfish: pipe: Return status from "deinit" since "remove" does not do much Message-ID: <20181016063028.GC882@kroah.com> References: <20181003171720.169953-1-rkir@google.com> <20181003171720.169953-7-rkir@google.com> <20181015183605.GB28454@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 15, 2018 at 03:04:47PM -0700, Roman Kiryanov wrote: > > This function can not fail, why are you returning 0 always? That > > doesn't make sense. > > remove in struct platform_driver requires returning something, we have > to have "return" somewhere. But this code always returns 0, you are changing the function return value to int, but it can not fail. I do not understand the need for this change at all, sorry. > I think we want to return closer to the place where we do something useful. I do not understand this. greg k-h