Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756955AbeAHNuV (ORCPT + 1 other); Mon, 8 Jan 2018 08:50:21 -0500 Received: from mout.web.de ([212.227.15.14]:54581 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756327AbeAHNuT (ORCPT ); Mon, 8 Jan 2018 08:50:19 -0500 Subject: Re: [3/3] GenWQE: Adjust 12 checks for null pointers To: Frank Haverkamp Cc: kernel-janitors@vger.kernel.org, Arnd Bergmann , Greg Kroah-Hartman , "Guilherme G. Piccoli" , LKML , =?UTF-8?Q?J=c3=b6rg-Stephan_Vogt?= , =?UTF-8?Q?Michael_R=c3=bcttger?= References: <49115f17-73f9-de03-d0cd-7a76c3c43dcc@users.sourceforge.net> From: SF Markus Elfring Message-ID: <15ccaf5d-3601-e895-900b-078fbca148d6@users.sourceforge.net> Date: Mon, 8 Jan 2018 14:50:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:xLuy4v2hPOWPeTWD22O6XLBTm22Rf6Md+few4jijtW4fNNLif1q esZdmG6S9ZLGOZELo9MHkUkuCPKjm2UlfgHDz48rSnydvSaHRWJmydzmcne8Ng86Mw6gSi0 HBqg4FPzADdWBsjGclNYcL3oKPW8j+TxgIliieu1V6oNnw6ocAsJHdzXCNvLY2xmRtn6qEV zaEuOiJz9q9A89iowSFVA== X-UI-Out-Filterresults: notjunk:1;V01:K0:47j1OkNraF4=:2l7BmvwVlAXjt6fLj66rxP pTTHRnHD4bxR1A/RBLZYdKnakm8u5OikEYtwkcCwcvCjgoixL3X7XmyoQRhwGwAYMKbI12C7L PD31o4Z4uta78m77xAp7fQ0J0xTnGHMI964Z2ku5UF9Zgk6rPievFZLLTpW+XKh7vkCBFjcK0 4agFwyBzGHuYpmZeg/BpG8v67a8MHhcJmO7WNzJKsMNkq0U8fymlC3+A8HO1xdIXGY0IcCVLG 7JQSqf1CgflzL5KUFujMA+CKc/sN14Mzk/H9HZ1MJ9iUSQI5+1MvS3GG5BOPUDdsg4pL9RmeK EWo/Na/wpkX0KDu5zlY+X1hyTwfhf0y6ebAn7z5Mj9lCnYyq7yrpN51JsK/luyK092ILTo+mA +tuSkrHfnWt2S91jTU/MXRIgSfj8StJC/+o92x0hCmIGt2Te7A/DbxAUawyg72a9lXAIVh+RC wlk4kIiKYjRq7/hSk0ESr1eq8WuayonBIpDEt1j46MD/beN6xDau+sGdZfzRAS02iQcYKGhDj a+2Xe2OuynMfGngZBr1nUwPCEjS2nEC0vvSdSDMpKjwIVceussJgLhrzgCyMR0jLGYUwNcRAX wYjhoH8Xz3OKDOBGQbATJliJk5QIvAYZQy6AGav8Y8+q4vxXIV1KejXL2a5s/NsnYSTrtZOIy 1mn1nQWcyPqceckaaFxwn/04uXDfvITepV/HP3a6wJaBxGamS0d3K9nHyfZ2dJIgAE2ZTBKbb SbDe4Gk8PPYz2LKSF5zD0D8Mgpt1yyRx5drhw0DfYR+PPle+N6RE0XUfmHT4MFRmvS+SYbNkE jYAxl1G2eRJR42n19w+U7nSjYPjAtBp4L/HRaaqYdHePS1xSIc= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: > I personally like the explicit compare (ptr != NULL) more than the !ptr notation. Coding style aspects can evolve, can't they? > When was the checkpatch.pl script modified to suggest the latter notation? Would you like to take another look at the software update “checkpatch: add --strict "pointer comparison to NULL" test” from 2014-12-10? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b75ac618df751b927469ddbca63cf151a62f0f9d > Is there any advantage other than the shorter notation? * Do you eventually care for an influence on the run time characteristics for the compilation of this software module? * How do you think about to reduce the dependency on a special preprocessor symbol? Regards, Markus