From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932597AbcKHGwm (ORCPT ); Tue, 8 Nov 2016 01:52:42 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:40196 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752582AbcKHGwl (ORCPT ); Tue, 8 Nov 2016 01:52:41 -0500 Date: Tue, 8 Nov 2016 07:52:48 +0100 From: Greg Kroah-Hartman To: Eugene Korenevsky Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Luiz Capitulino , Linus Torvalds , Chase Metzger , Alan Stern , Mathias Nyman , Lu Baolu , Oliver Neukum , Hans Yang Subject: Re: [PATCH v3 2/2] USB hub_probe: put initialization before usage Message-ID: <20161108065248.GE13024@kroah.com> References: <20161107185509.GA19018@vnote> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161107185509.GA19018@vnote> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 07, 2016 at 09:55:09PM +0300, Eugene Korenevsky wrote: > Minor optimization: move initialization immediately before usage. > This gives a chance for more accurate register allocation by the compiler. This is a probe function, a very slow path. Don't do micro optimizations where they are not needed, or can not be actually measured. Also please just cc: the needed mailing list and maintainer for the patch, don't go overboard for such tiny stuff. thanks, greg k-h