Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933956AbcJMRQZ (ORCPT ); Thu, 13 Oct 2016 13:16:25 -0400 Received: from mout.web.de ([217.72.192.78]:58452 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933766AbcJMRQR (ORCPT ); Thu, 13 Oct 2016 13:16:17 -0400 Subject: [PATCH 00/18] [media] RedRat3: Fine-tuning for several function implementations References: <566ABCD9.1060404@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall To: linux-media@vger.kernel.org, Hans Verkuil , Mauro Carvalho Chehab , Sean Young , Wolfram Sang From: SF Markus Elfring Message-ID: <81cef537-4ad0-3a74-8bde-94707dcd03f4@users.sourceforge.net> Date: Thu, 13 Oct 2016 18:15:51 +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:O1NQdlVp1aqfb3gew6WDAc8OqY6MKQafciPoTbNAFkXyYSfjeyv 9pLu7Z9Shf+Y9aHUQ7HXGJQAywygtCNXuCaB4416y+jlg5bNgKNooQEiDet28KUKUf0LpGs EXwk3k6UBbvF808rkx3cjxiGeLFRX8GDWxslXq1uVL6knomkXeQbPipWgonvVJId8dzqJz0 wEOrpQzVwwd5bwerndOOw== X-UI-Out-Filterresults: notjunk:1;V01:K0:b8edFYvoYg0=:U7RwEsyw+1BM064wSUkRlD wf9bJkE6vFuZfgHiG+ixq4xxGv/z06Z2lupTObLzzvgbgVB6lHRdHWJIrnkMa7ySxBV7zI1hU dM7M8VrIR/ui19gGH+XEEgXP8BGXDyoG+tep0sk8r0X6i55Mx2UxEH0UoJx2m9o6o8cbMMgJW TtI9dBmKYhdA84RmryeZFeIdTOVNuZlkLPF9Vb231S+7ipNavEKdr3dtVk2LfLH/cMQTau+NB vo3VAcbXMEWIS4V9keur4+ub8dbqKute+d79pGH5Zqw3Y5HHTAmrtXqkSbTnP4eBz8FMXTDbj NaXOAMFFOzdn+SKeBNtWvNxTJkUCZLVCaQ1tFY01G2Xddf26vzom94TW8C3RBuaSAw+ggo1uC 0ashGg5p8TvsXvkBky6JBIuIYoVdLgkPGzSBJ4oKkoJlxMtpvC7/u8Y8S7H737qkqpN6bvPaS fns3wl5k23XbzynjiBKurO/DZly+N60kyY1XR5w0qYBfSWzzQmGdKqXJg2s0DEy88vP8y/SOo UlrPWTSAfc4RTP2jnz6cAackc6JuUYvw6RJRSYjy69LOeq9NeV1U46IyBKap9foscLJaGLVuQ Lm80VYlylp6632+RtLe4mgcEhXCRCehhWBzkT6g81xNfnJ/GUixdBCWH4s31TLlmi99+fEbZc xAcr1KDPTh9uvkPWP4YuAseb9LR4oJCzSbzlWR0O/ivqOmjCj1143YvXg5PwRc15Rr4TxRmO0 t3oX92dar2LLOExRAMxeqENifzQT4bkhNr5kZt4P1/ydIvY1uSsOwyBTbWXDxSVh2yqdRaMqx yxR6Ulv Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1369 Lines: 31 From: Markus Elfring Date: Thu, 13 Oct 2016 18:06:18 +0200 Several update suggestions were taken into account from static source code analysis. Markus Elfring (18): Use kcalloc() in two functions Move two assignments in redrat3_transmit_ir() Return directly after a failed kcalloc() in redrat3_transmit_ir() One function call less in redrat3_transmit_ir() after error detection Delete six messages for a failed memory allocation Delete an unnecessary variable initialisation in redrat3_get_firmware_rev() Improve another size determination in redrat3_reset() Improve another size determination in redrat3_send_cmd() Move a variable assignment in redrat3_dev_probe() Delete an unnecessary variable initialisation in redrat3_init_rc_dev() Delete the variable "dev" in redrat3_init_rc_dev() Move a variable assignment in redrat3_init_rc_dev() Return directly after a failed rc_allocate_device() in redrat3_init_rc_dev() Rename a jump label in redrat3_init_rc_dev() Delete two variables in redrat3_set_timeout() Move a variable assignment in redrat3_set_timeout() Adjust two checks for null pointers in redrat3_dev_probe() Combine substrings for six messages drivers/media/rc/redrat3.c | 146 +++++++++++++++++++++------------------------ 1 file changed, 67 insertions(+), 79 deletions(-) -- 2.10.1