Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754430AbcJNLke (ORCPT ); Fri, 14 Oct 2016 07:40:34 -0400 Received: from mout.web.de ([212.227.15.4]:52826 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753866AbcJNLkZ (ORCPT ); Fri, 14 Oct 2016 07:40:25 -0400 Subject: [PATCH 0/5] [media] winbond-cir: Fine-tuning for four function implementations References: <566ABCD9.1060404@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall To: linux-media@vger.kernel.org, =?UTF-8?Q?David_H=c3=a4rdeman?= , Mauro Carvalho Chehab , Sean Young From: SF Markus Elfring Message-ID: <1d7d6a2c-0f1e-3434-9023-9eab25bb913f@users.sourceforge.net> Date: Fri, 14 Oct 2016 13:40:09 +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: <566ABCD9.1060404@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:qPun63qx7b6AyBFJwJbTi6rVon12hqQfk7oLKeJ5HEY6xS73Nap kStYKxxQZ/iaBHKUEgQZkIMiIy7I5ndKmsx6UiE1WTJN+Bmd8rDKeS0QZbes/yoJpzyVBhv nhmxP1iMGfWHgPcBhZ/gQsKDZFIjSHULUAHU+ML8MsCiGAAwwkLM+nKcpLHovNwBkHXSqa2 VTg67ycbJOwsR8rDL0dmw== X-UI-Out-Filterresults: notjunk:1;V01:K0:XS5PXDbUH+w=:hCRZlJe2DRJqC98kPorlTu dxweLA7Iuy1JvY9E2wte7Bf5qwkAmrAPLyWYD0iadBKEuXJeyCwLCLJp+/M+cyFhGJvcZRBIJ 7VE2j+uKbZwqJVn96dFknts+BLOno164GM9vY0lIWB9G+YzfXzV4G1BXj0bht+T3ZOrVrEmSY +EbfqGzLkVuIc+/Plkrsv8JMvUNHQIfdchAB1WcbxjFibja1waTwHH1oY3f0hoL0zjrKXi0vy yIZsgYEGvG97+YRaQ8V8P6Z8LYHiDRW6AcbxuwxvOwotA57SK/2nMFuR9ZzMo4JgBouAiDj2Q XRKmoBeDCnyLcIZxLjVKs7RSo3gO0bSxypTi0DeJS1EwrItKg2oI67mIe71N+o+9MTkA5V0z/ Vt5BNAFTp17wN0Q7Mjgw0edd0j1VSnAJdoWlVQcggEQJQJda4WZAOqgHX08pKm6A+mdIFkVHg lB4cfSHFFrLtqgK/JXcEHz4+rEet9966E0prJ6al6WZzX8ULMWpt14Oc3b+GblMkMW/iAYymg qArE1DXN+yQpotU0P24w/Dw9MRhZwjaD3ac93+3L95yRGEGsC/PoD0lywY3zjPB6UOGq9eE6I 53zcxfu0YRjPFhpiC3s3OY0oy8PElqnOwSyr02AetDaeoDpMaop0t3XhffiLoby9jyY3JqrAH 9ewbkCrU6JKNPlOSt7M+WIuq8eWzL5qrdykKUnx02pLn52L9LhbvEdORVFh1oXhxvJPvVcGm2 RYLt5+ooAh7PhzKtTCJ4Oreqq4y+FRrwxVFmOqi00oDv8lW4xbqQN0ii4gO+DdSZrKPLw5XiF cTjXNl4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 600 Lines: 18 From: Markus Elfring Date: Fri, 14 Oct 2016 13:24:35 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (5): Use kmalloc_array() in wbcir_tx() Move a variable assignment in wbcir_tx() Move assignments for three variables in wbcir_shutdown() One variable and its check less in wbcir_shutdown() after error detection Move a variable assignment in two functions drivers/media/rc/winbond-cir.c | 95 +++++++++++++++++++----------------------- 1 file changed, 44 insertions(+), 51 deletions(-) -- 2.10.1