Return-Path: Return-Path: Subject: Re: [PATCH 4/4] remoteproc: Get rid of tedious error path References: From: Alex Elder Message-ID: <3c2ea363-e60f-b3ef-e66f-df8d558972bf@linaro.org> Date: Tue, 14 Apr 2020 07:27:39 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit To: Markus Elfring , Mathieu Poirier , linux-remoteproc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Bjorn Andersson , Ohad Ben-Cohen , Suman Anna List-ID: On 4/14/20 3:53 AM, Markus Elfring wrote: > … >> +++ b/drivers/remoteproc/remoteproc_core.c > … >> @@ -2105,11 +2104,8 @@ struct rproc *rproc_alloc(struct device *dev, const char *name, > … >> +out: >> + put_device(&rproc->dev); > > How do you think about to use the label “put_device”? +1 > > Regards, > Markus >