Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751329AbdH3TBX (ORCPT ); Wed, 30 Aug 2017 15:01:23 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:45441 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750757AbdH3TBV (ORCPT ); Wed, 30 Aug 2017 15:01:21 -0400 Date: Wed, 30 Aug 2017 21:01:19 +0200 From: Andrew Lunn To: Corentin Labbe Cc: f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] net: mdio-mux: Misc fix Message-ID: <20170830190119.GK22289@lunn.ch> References: <20170830174651.30325-1-clabbe.montjoie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170830174651.30325-1-clabbe.montjoie@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 521 Lines: 23 On Wed, Aug 30, 2017 at 07:46:46PM +0200, Corentin Labbe wrote: > Hello > > This patch series fix minor problems found when working on the > dwmac-sun8i syscon mdio-mux. Hi Corentin In general, a nice patchset. Looking at the code, there are a few calls to devm_kfree() which look redundant. This one should probably stay: if (r) { mdiobus_free(cb->mii_bus); devm_kfree(dev, cb); } else { but i think the others can go. Just a suggestion, not a problem if you don't feel like doing this... Andrew