From: SF Markus Elfring Date: Wed, 19 Oct 2016 13:32:20 +0000 Subject: Re: [media] winbond-cir: Move a variable assignment in wbcir_tx() Message-Id: <1a68a0e8-6d56-d9c1-058b-cf9cd8122acb@users.sourceforge.net> List-Id: References: <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: <78ddb54d61d871ad4b81c986dd9a32d4@hardeman.nu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: =?UTF-8?Q?David_H=c3=a4rdeman?= , linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Sean Young , LKML , kernel-janitors@vger.kernel.org, Julia Lawall >> 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? * Do you care for data access locality? Regards, Markus