From patchwork Wed Oct 18 19:20:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 827787 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yHMQ128bTz9t6m for ; Thu, 19 Oct 2017 06:22:17 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3yHMQ11JbyzDrSw for ; Thu, 19 Oct 2017 06:22:17 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=users.sourceforge.net (client-ip=217.72.192.78; helo=mout.web.de; envelope-from=elfring@users.sourceforge.net; receiver=) Received: from mout.web.de (mout.web.de [217.72.192.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3yHMNd18KZzDrJg for ; Thu, 19 Oct 2017 06:21:04 +1100 (AEDT) Received: from [192.168.1.2] ([77.181.46.217]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LnS4I-1daWwh0Z8Y-00hfIz; Wed, 18 Oct 2017 21:20:25 +0200 To: linuxppc-dev@lists.ozlabs.org, Alex Williamson , Alexey Kardashevskiy , Andrew Morton , Bart Van Assche , Benjamin Herrenschmidt , David Gibson , Doug Ledford , Greg Kroah-Hartman , Johan Hovold , Masahiro Yamada , Michael Ellerman , Nathan Fontenot , Paul Mackerras , Rob Herring , Sahil Mehta , Tyrel Datwyler From: SF Markus Elfring Subject: [PATCH 0/5] PowerPC-pSeries: Adjustments for seven function implementations Message-ID: <0d221be4-1402-0499-d95e-afa4a30e1f33@users.sourceforge.net> Date: Wed, 18 Oct 2017 21:20:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Language: en-GB X-Provags-ID: V03:K0:GjLQpUpQpAaXdsF+Vy97vi6N5z0xftX3N9yiQSlaD4WLdK5T5Ky REyUHLkFXfnTu2rIWU+d5mje7BDuCfucXZ5isaY+aDt1vWbdj0BWhzePYhmcBx5oNRUvGSJ J1vjswvToErXrv1kAVK7W/nzjYnnCgDAL54QXnMBVvwcTFCz9bviejZUwgOTbdgwXna7Pom FtzyKEl/iw/cPOUigXqzg== X-UI-Out-Filterresults: notjunk:1; V01:K0:zA8pDUx/Vkw=:9W1fzRWiUSNjpQRp8qL9PH 2DFHHaWWQ7y6kd39iiFFm1Ks1pZZKQzPNBEdEkwkqDiuqzbW46gNY4rVc7hWs4SJXhtOwigGt SpdrIac9uatIKswNLhSs5XsmGRw9m41DRGpuqJphObnn2PZYlQGUBi19+rvV32v/pht6WP41d v4YeEZNCDFoH0oQjE+qNCroHeUZ/uTiq4QgNL8e9pwv9jIXeFIU7uVh/BY+AGxNfwE/EXpkfk pFbhmB3p7DkCn1cUjCZ87+h5tDYsDkiUg/M0xbPuwFmhlROk/6pqS7qRiwFbAa983+ggZbgTh Xjqnx5t9h0ALHL05BVabpI41yQ6xI0bkhC5hboOKV+WtTNdO9ERaP89FTdq6R1oZb9ETzUNCU BQTpjcKJI5xt4S5bVCKKf90G4yyC2fEtqMdgk3UHwc1ozvu9IZ//vYhl0LvtVxnOitzt/cC/Y wT4NkiG/fn8AxNmi2pDpir2GEax4viz1ssOR+pAXTA/DUX1qbo192VCKVuoI6u2v8SA8JQmD6 fwudmmoqdRf3kuK3C5LkxXvGtY9kXzwVqjvL4DlgdgrHJSTcxPrdarFQbJ6JB5J2vLEZ3Ab6Z WUdm577gBlpwW10k9OigBWPauE55UuRMu93CQ+buLcWorJcv8jlEmfWXoycE0QLyt64k88BMS 4VUyMlOi4wspl8ytNgaJ2UaDXIEVeAmmXMF6YFWXkIt+A+Xz8T05IBfJ4aPSmBYVbgsvLysJa JF56WKlnzNi7BlxVAEKkzssIK6fMfKVUA1qiHDqeYGtssOIDyJRj2kkthi89vCCmnuTOt/oB3 mL2fjLx4/OluAtf54XtUpyMILWBkkqI4mqRrJyvP7y7CfSjoak= X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, LKML Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" From: Markus Elfring Date: Wed, 18 Oct 2017 21:11:23 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (5): Delete five error messages for a failed memory allocation Improve nine size determinations Delete an unnecessary variable initialisation in iommu_pseries_alloc_group() Return directly after a failed kzalloc_node() in iommu_pseries_alloc_group() Less function calls in iommu_pseries_alloc_group() after error detection arch/powerpc/platforms/pseries/dlpar.c | 5 ++-- arch/powerpc/platforms/pseries/dtl.c | 5 +--- arch/powerpc/platforms/pseries/hvcserver.c | 7 ++---- arch/powerpc/platforms/pseries/iommu.c | 40 ++++++++++++------------------ arch/powerpc/platforms/pseries/vio.c | 9 +++---- 5 files changed, 24 insertions(+), 42 deletions(-)