Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933416AbcJLO0d (ORCPT ); Wed, 12 Oct 2016 10:26:33 -0400 Received: from mout.web.de ([212.227.15.3]:62679 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755042AbcJLO0X (ORCPT ); Wed, 12 Oct 2016 10:26:23 -0400 From: SF Markus Elfring Subject: [PATCH 00/34] [media] DaVinci-Video Processing: Fine-tuning for several function implementations To: linux-media@vger.kernel.org, Hans Verkuil , "Lad, Prabhakar" , Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall Message-ID: Date: Wed, 12 Oct 2016 16:26:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:YevUpk6YNnIr/sjiD+A5NvkL8ubY73CFcckUgwHajLyWgxT/XQT Xyc/365yecwUuA7jEvKWpRThCbx3ZqhQxacVehUSnoLL7eHO4tlkYpsRswAzjI+0TyvdIA5 T+SbKgGiJA2gVTOBFN7SXN85SRePtXB+GQmEgsu56uSt1SIx9527S02oIbY+8XaELPgVEdg AZhSwasMw0wBu1ubVq+Hw== X-UI-Out-Filterresults: notjunk:1;V01:K0:9FsFiqpdzV8=:JQSqfmqi/ourWhcIWLB6NF KyeBU8Duf2LoHdCx9a1xoyEvz3Fs+7hBbgt2+FV5WRY6TF7U2wWH76BCelTwNLczmj0wPTVvz hyPCQedRlenOQhYNCjK215WJaO4k7Bt3uYyewKJx1xw4GQpFt+Pt5444CGlazvaKUfXuOGbuU AxNDEce0woz8ctWIBX6Q/FZFE+Acs5tFUbQgtnfaIoRBT+MnTrMPnic2/79KUhAr3DM3fh2+v z8Fx4BrLo3O4iAvNcV96CXwoU3v/ugjEAyktvqAl8Mzj/2fqhsHV4lIkfk6GkwNVTwvRp6NNe 1k6W6w4twcKy5bRXBnNcywUAi54Mff088HL+88wfjD/1RrrmVMzFa8zEBZkU+4QKhAW0RWjby Rwg96soXvf8ERsIfCWHZqaeiwC+ev67BWcu2VLZZALJ2zKtjRTOwDTqLRiesaBI43SsmqaSeS YmbGwrHFCPquVPoAQyCDIBOkCe0Siinv/6vPAMOhW2E9bbIOeAGKI+LQmYphxvFGZtykKOEef t8oSzufQC9i/UKpvRr1OsH0HUVKvEp1ee/pORs2MFjgcocMSp6rkCt8nzdXsl1703PLTP9SBf Lh4F4WViPDivKxuPPj0Zmaye6VLRoaSNzb+NXvqtGk8SG9yrJwBDdcoDRAdSQAxH7IHTzRQN3 oApYbY3887Xf2p/C90r8/wE6QZgz4bAjZDXKZlY4Ii8EjrZAsFFB58xGGHcW4NM4z1Oc9pCPB mliem/yXwrXmyaCK+SL+dkQFl0Q6oprFmfLrOiMTJnYS1WCYhi/6WTaEXbFGUsNAVvBV05VOz Rf1kUB2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2620 Lines: 50 From: Markus Elfring Date: Wed, 12 Oct 2016 16:20:02 +0200 Several update suggestions were taken into account from static source code analysis. Markus Elfring (34): Use kmalloc_array() in vpbe_initialize() Delete two error messages for a failed memory allocation Adjust 16 checks for null pointers Combine substrings for four messages Return an error code only as a constant in vpbe_probe() Return an error code only by a single variable in vpbe_initialize() Delete an unnecessary variable initialisation in vpbe_initialize() Return the success indication only as a constant in vpbe_set_mode() Reduce the scope for a variable in vpbe_set_default_output() Check return value of a setup_if_config() call in vpbe_set_output() Rename a jump label in vpbe_set_output() Delete an unnecessary variable initialisation in vpbe_set_output() Capture: Use kmalloc_array() in vpfe_probe() Capture: Delete three error messages for a failed memory allocation Capture: Improve another size determination in vpfe_probe() Capture: Delete an unnecessary variable initialisation in vpfe_probe() Capture: Improve another size determination in vpfe_enum_input() Capture: Combine substrings for an error message in vpfe_enum_input() Capture: Improve another size determination in vpfe_open() Capture: Adjust 13 checks for null pointers Capture: Delete an unnecessary variable initialisation in 11 functions Capture: Move two assignments in vpfe_s_input() Capture: Delete unnecessary braces in vpfe_isr() Capture: Delete an unnecessary return statement in vpfe_unregister_ccdc_device() Capture: Use kcalloc() in vpif_probe() Capture: Delete an error message for a failed memory allocation Capture: Adjust ten checks for null pointers Capture: Delete an unnecessary variable initialisation in vpif_querystd() Capture: Delete an unnecessary variable initialisation in vpif_channel_isr() Display: Use kcalloc() in vpif_probe() Display: Delete an error message for a failed memory allocation Display: Adjust 11 checks for null pointers Display: Delete an unnecessary variable initialisation in vpif_channel_isr() Display: Delete an unnecessary variable initialisation in process_progressive_mode() drivers/media/platform/davinci/vpbe.c | 93 ++++++++++++--------------- drivers/media/platform/davinci/vpfe_capture.c | 88 ++++++++++++------------- drivers/media/platform/davinci/vpif_capture.c | 28 ++++---- drivers/media/platform/davinci/vpif_display.c | 30 ++++----- 4 files changed, 109 insertions(+), 130 deletions(-) -- 2.10.1