Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938758AbcJSOO0 (ORCPT ); Wed, 19 Oct 2016 10:14:26 -0400 Received: from mout.web.de ([212.227.15.3]:57009 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938723AbcJSOOW (ORCPT ); Wed, 19 Oct 2016 10:14:22 -0400 Subject: Re: [media] winbond-cir: Move a variable assignment in wbcir_tx() To: =?UTF-8?Q?David_H=c3=a4rdeman?= , linux-media@vger.kernel.org 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> Cc: Mauro Carvalho Chehab , Sean Young , LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <1a68a0e8-6d56-d9c1-058b-cf9cd8122acb@users.sourceforge.net> Date: Wed, 19 Oct 2016 15:32:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <78ddb54d61d871ad4b81c986dd9a32d4@hardeman.nu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:khYeqMKdMhLqDIaAYtHOCSjZyp94BGgc16+HFBqrO6V1tfrmNXD Ypz1F/cZ80qMhI7wr4kAFpA4meiJ/a5nCTE1hdNj25y0GVrI1n0nKNqfwqDOuN5y/NOWN3E X5HmYrShDEEPij88tCP15GtaAfj09+6a9RO3V1llBqkTcIW+ov6l6WZGKV9fedSOJ9Qp4hm ILyMVHCBvZB/ix3B8JKUA== X-UI-Out-Filterresults: notjunk:1;V01:K0:3RCfG4EN6MU=:7jk3OEQOuO5NsjtK9NOqAR AS+R6hOYNqxbR6f4TxygRdMmg0lAldoZXBY4wjnPieUy4k48/NSgVe/NtLNmQkn/aiM+actsB p9zp44qSgTusMMFNkfWAU+3eoWo3d7JHwutl+v24j+4oZBj9IZKWZVUawWvfHu2B1Fl266nG3 vTkMBCq9QPY4jrQzYXNt5sMTnWZPf1NDFDzcJuaUj8Vz/J0SzNZeO/5i+rse2ogM8dSJs2aWK IIoPbH9F4uf5UDhEP1bJQOaTc5cKMKa6Qrk37d2K/di13bjnqpg1jqJCXMYRi3p07Z2qTyrHv ikRTjQs/g0gHnGzcxEIAamTwD3qZ55SkdpLpUXN8ZDqSQppyMK/e5dBUjL3lGjgBYa1gGrByL 2hUuVLSrOTDVbr/jjWdV9ZjdrR2AUh9A0BOq0gya5BKL7L4TS87t7TTlE7LVCpBMsK46Ets8F 0pKnhH7FXR37BzGWvRIaW3Zc95+d7Bx1zVitHby2T0Z0cAaZU23IHjoA8PacPbrIUYA9+80ec UpRzm3hkmVqqMZZ058a7MRBdAzBBvz0o7Bi/URnota8Dvi9wUSJTxGyeoMuIktyaZGa7AEdGy vTW5Q5lQQWkuUZkkIquj/w2Op/X+IfgcCGhM9VUqRpmjk3K+2P7v8JRJ8X52al85sFRXxtIt/ YucljkNpGtbMkhD3v68bBvO2464+jIDFkf7OeFCgO/AELwqTmJACPA/DEyTjOxa2GuheoV7Sk IZZTukBQiGClhMzJ9dTPa+KhsEPKyKVRzKmZbIgeL2pWxYN8onooaVuB4g9pPIdPvj7hDq5zz Agm5L7C Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 332 Lines: 12 >> 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