Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933542AbcCIRSs (ORCPT ); Wed, 9 Mar 2016 12:18:48 -0500 Received: from mail-vk0-f43.google.com ([209.85.213.43]:36004 "EHLO mail-vk0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933464AbcCIRSN (ORCPT ); Wed, 9 Mar 2016 12:18:13 -0500 MIME-Version: 1.0 In-Reply-To: <56E04F73.6030504@xilinx.com> References: <1457367460-9123-1-git-send-email-moritz.fischer@ettus.com> <56DDB6CA.8000100@atmel.com> <56E04F73.6030504@xilinx.com> Date: Wed, 9 Mar 2016 09:18:11 -0800 Message-ID: Subject: Re: [PATCH 0/3] net: macb: Fix coding style issues From: Moritz Fischer To: Michal Simek Cc: Nicolas Ferre , Cyrille Pitchen , David Miller , Punnaiah Choudary Kalluri , netdev@vger.kernel.org, Linux Kernel Mailing List 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: 1028 Lines: 35 Hi all, thanks for the feedback. On Wed, Mar 9, 2016 at 8:29 AM, Michal Simek wrote: > On 7.3.2016 18:13, Nicolas Ferre wrote: >> I'm not usually fond of this type of patches, but I must admit that this >> series corrects some style issues. While I was playing around with my fixed-link for macb RFC I was flooded with warnings, so I figured I'll fix it while I'm at it. Just makes it easier for other people to work on it afterwards I thought. > > mac = of_get_mac_address(np); > if (mac) > - memcpy(bp->dev->dev_addr, mac, ETH_ALEN); > + ether_addr_copy(bp->dev->dev_addr, mac); > else So don't you like this in general or just would like to have it split out in a separate patch? > Also extending scope of variables is not the right way to go. Especially > when some automation tools are reporting that you should reduce scope of > use for them. Wolfram is checking it for example. Alright, understood, I'll address this. Cheers, Moritz