From: SF Markus Elfring Date: Wed, 19 Oct 2016 14:14:12 +0000 Subject: Re: [media] winbond-cir: Move assignments for three variables in wbcir_shutdown() Message-Id: <213df5d7-1c5a-496d-9928-bdafefce8781@users.sourceforge.net> List-Id: References: <3c96d0bf-62fa-6b02-2a2d-2a097709271a@users.sourceforge.net> <285954ec-280f-8a5a-5189-eb2471b4339c@users.sourceforge.net> <566ABCD9.1060404@users.sourceforge.net> <1d7d6a2c-0f1e-3434-9023-9eab25bb913f@users.sourceforge.net> <327f6034db9ce0c0a72947e47daf344a@hardeman.nu> <10715e71c46bda76f6c8654675062f61@hardeman.nu> In-Reply-To: <10715e71c46bda76f6c8654675062f61@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 setting for the local variables "mask", "match" and "rc6_csl" >>>> behind the source code for a condition check by this function >>>> at the beginning. >>> >>> Again, I can't see what the point is? >> >> * How do you think about to set these variables only after the initial >> check succeded? > > I prefer setting variables early so that no thinking about > whether they're initialized or not is necessary later. * How do you think about to reduce the scope for these variables then? * Would you dare to move the corresponding source code into a separate function? Regards, Markus