Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753483AbbL2PEs (ORCPT ); Tue, 29 Dec 2015 10:04:48 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:33643 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752868AbbL2PEm (ORCPT ); Tue, 29 Dec 2015 10:04:42 -0500 MIME-Version: 1.0 In-Reply-To: References: <1451395493-22380-1-git-send-email-prtvar.b@gmail.com> Date: Tue, 29 Dec 2015 16:04:41 +0100 Message-ID: Subject: Re: [PATCH] resources: Remove unneeded initialization of local variable From: bojan prtvar To: Laurent Navet Cc: toshi.kani@hp.com, dan.j.williams@intel.com, Andrew Morton , Jakub Sitnicki , jiang.liu@linux.intel.com, open list , kernel-janitors@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 538 Lines: 16 On Tue, Dec 29, 2015 at 2:36 PM, Laurent Navet wrote: > why not directly ? > > struct region_devres *dr = devres_alloc(devm_region_release, > sizeof(struct region_devres),.. > I follow Dan's rationale [1] [1] http://www.spinics.net/lists/target-devel/msg11355.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/