From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753584Ab2FZUoX (ORCPT ); Tue, 26 Jun 2012 16:44:23 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:41642 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753967Ab2FZUoQ (ORCPT ); Tue, 26 Jun 2012 16:44:16 -0400 MIME-Version: 1.0 In-Reply-To: References: <1340736849-14875-1-git-send-email-yinghai@kernel.org> <1340736849-14875-2-git-send-email-yinghai@kernel.org> From: Linus Torvalds Date: Tue, 26 Jun 2012 13:43:54 -0700 X-Google-Sender-Auth: 7xqwGMjpAF-hK7rwBRIgwQ36n60 Message-ID: Subject: Re: [PATCH -v12 01/15] resources: Split out __allocate_resource() To: Yinghai Lu Cc: Bjorn Helgaas , Benjamin Herrenschmidt , Tony Luck , David Miller , x86 , Dominik Brodowski , Andrew Morton , Greg Kroah-Hartman , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 26, 2012 at 1:33 PM, Yinghai Lu wrote: > > You are right, please check updated one. I think you can now also remove the "goto out" and in __reallocate_resource() and replace it with a "return err;" instead. But yeah, this looks fine. Linus