From: "=?utf-8?B?RGF2aWQgSMOkcmRlbWFu?=" Date: Wed, 19 Oct 2016 13:47:01 +0000 Subject: Re: [media] winbond-cir: Move a variable assignment in wbcir_tx() Message-Id: List-Id: References: <1a68a0e8-6d56-d9c1-058b-cf9cd8122acb@users.sourceforge.net> <26ee4adb-2637-52c3-ac83-ae121bed5eff@users.sourceforge.net> <566ABCD9.1060404@users.sourceforge.net> <1d7d6a2c-0f1e-3434-9023-9eab25bb913f@users.sourceforge.net> <78ddb54d61d871ad4b81c986dd9a32d4@hardeman.nu> In-Reply-To: <1a68a0e8-6d56-d9c1-058b-cf9cd8122acb@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: SF Markus Elfring , linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Sean Young , LKML , kernel-janitors@vger.kernel.org, Julia Lawall October 19, 2016 3:32 PM, "SF Markus Elfring" wrote: >>> Move the assignment for the local variable "data" behind the source code >>> for a memory allocation by this function. >> >> Sorry, I can't see what the point is? > > * How do you think about to avoid a variable assignment in case > that this memory allocation failed anyhow? There is no memory allocation that can fail at this point. > * Do you care for data access locality? Not unless you can show measurable performance improvements?