From: SF Markus Elfring Date: Wed, 19 Oct 2016 14:05:59 +0000 Subject: Re: [media] winbond-cir: Move a variable assignment in wbcir_tx() Message-Id: <71669997-fda1-6b97-9599-4b8118a20fb7@users.sourceforge.net> 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: 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 >> * 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 really know the failure probability for a call of the function "kmalloc" (within the function "wbcir_tx") under all possible run time situations? >> * Do you care for data access locality? > > Not unless you can show measurable performance improvements? Did any software developer (before me) dare anything in this direction? Regards, Markus