From patchwork Fri Aug 9 14:40:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 170940 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp10103955ile; Fri, 9 Aug 2019 07:44:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzt4OGzsdpJQuA0sGc+Q4BaK9rE9DsW+nmhyoXbv/vQKTnKxTzVLl7+8FQTKiMKr0j2LKip X-Received: by 2002:a63:506:: with SMTP id 6mr17655231pgf.434.1565361874288; Fri, 09 Aug 2019 07:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565361874; cv=none; d=google.com; s=arc-20160816; b=Gb8kIpd59dqEMKz59jP/1C3uZ+78+oz9FYDOPafZta+rwBJR7D4J0f/n7RUt2yV1Wi jP4LKtmvgoiERCwlxyhyzXgLyAFaZwExfG74PCIjhh877c9YxN63c8DnJwM/+4+BoHj9 ws9yn/PRYX6ETY/adipmFc8ldrEUg2+YKKQfwYFpHGvWjzKWbRYub1+IqAw0CvcerfZz /w0/sG+i1uLuglg68SVh65Dw6w060/L/M0kGWkW3CUx9fIhGFvDqW8Uo28U6kA9yRztU kO3ZNqh9Lt0nWk1TwmeUcO/HFLG2eVUU4MA8rOfKQDqeyV5tghcQmqmQYMARQ9jjUFgM qH/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=TYyx0FUA/ofsYfk9SQzB36989rINHG8jTpTEvzlWzsk=; b=Q7oLWs5DMW/gi/f51r4x0/Qh43cNEte0FCq+OdOUvNbZPGW+ANM2VRTqEoeq4wBb/7 kV8AgKaseGGFjXDSyusGdS50OGK9AYTMMNqz7mVf4oI6sTqdacZzAt5sJqmBF/ilkjuT 1TBLJtK/1Jf9FJhcQwlDDBv6VltCywRZmRidHDkLnXD48nNNZId5pHVoLNueexxVmWO0 TOdRtdZC3d4dHO0wN/bNXVA818UZGPRhHluCYzXBicmG/IlJgatbGarwOV8++D5JPlGf +9spQANjHRktovzdqUeLCEbvGm5OSblh/D3W+USsM2X3tkuFOrVNw8pJ/SjN7Tt8PObn auWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si49572445plb.14.2019.08.09.07.44.33; Fri, 09 Aug 2019 07:44:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407161AbfHIOod (ORCPT + 28 others); Fri, 9 Aug 2019 10:44:33 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:54831 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfHIOob (ORCPT ); Fri, 9 Aug 2019 10:44:31 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MeDYt-1iUKLc3gKV-00bKl6; Fri, 09 Aug 2019 16:44:12 +0200 From: Arnd Bergmann To: soc@kernel.org Cc: Vladimir Zapolskiy , Sylvain Lemieux , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kbuild test robot , Arnd Bergmann , "David S. Miller" , netdev@vger.kernel.org Subject: [PATCH v2 08/13] net: lpc-enet: fix badzero.cocci warnings Date: Fri, 9 Aug 2019 16:40:34 +0200 Message-Id: <20190809144043.476786-9-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190809144043.476786-1-arnd@arndb.de> References: <20190809144043.476786-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:ymJswPYKYUfJcYhkgzxASapbRky55SNMKmN45E1N1FA/lD9wVRt nEkanG7MtJ/Pqveg+h6/6LAG+DrFlq4SuhWOfaZiZETH7gs4em9A42H4Zt4uT3VfWrhsRIe CulwVh+XfSAkba94KTZX+nwNfSPRHjC2+ey++8db5AJWpxOhnI+dyS0vb26UIXRYODolgss ynV1gvQMpkNJsma+aWNww== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:DJdco6j8rD4=:dQhHBR77IFlKfKZRM8eVPy V4nC2W/CrV/kLoRpyM40abNGXn7N9t/aH3K6fSYmFvDJr7DP0iiwcuYczFi4+CUVeoUIdbnMI arj1+4IXw5yJCeQTYabD611KpdLgrW7/n+Sc3ySzEvRoON9NljdOTWLx1riZgBH8a+wiRXA+L Eq7ZMP3kqlqu1mdz6XZUdwfunBrF7kR81tnf374XRy0wcH9UI9pI1LPhQu4CxyQlr85VMyZbg MhS/+C5PMG7Lyc9niJLsIzIHqazyAa9QgashCgryO59fbkX7/lpkbilsIGUSCuQ/IzaJcH6cV Q0dtBElm1MOZYc7+F4ZRBk/XAnZH40dzJpa3NYDI+N4O/wKzd1jnNyobsVqrxesXszSXszE9a CU6nIAwn9meG1N+GkMf+kB32G+m2gqCI7O0myYNCfDswYe0kxTEI6pCxJIZHoavUtj7pPfAt/ 3ZlaoDE6Od+cEXOij5a2FrcdIj94CHIauGWDuM/3zIsqw7SBVPobAgPkN7iGhLnSCQVB1GvMU 5wUJ8aM5BAQMSMG8/TVMdRjFtlbnsBbq1cVqM5oSyJVzfFfum40hbwvFTL4i2BqXgJBWgzk8E gAvKXfQuhMQL0z7O1bJJyFvZ1oZ8MoFzb8fhiwTteLjiO2a+OB0LVNxbmJTw++1xInAJgDDgO 0G/+Jii877WgDnTQ4DecrPqaIx+F4QDoF2YK8KG7GHUHKoeZqLRr5CHs2p7m1l9QYrih/gVOv BKbi3SN3knrMlI+s1+mASE3vWQVTBTatnNgMew== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kbuild test robot drivers/net/ethernet/nxp/lpc_eth.c:1316:31-32: WARNING comparing pointer to 0 Compare pointer-typed values to NULL rather than 0 Semantic patch information: This makes an effort to choose between !x and x == NULL. !x is used if it has previously been used with the function used to initialize x. This relies on type information. More type information can be obtained using the option -all_includes and the option -I to specify an include path. Generated by: scripts/coccinelle/null/badzero.cocci Fixes: e42016eb3844 ("net: lpc-enet: allow compile testing") Signed-off-by: kbuild test robot Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/nxp/lpc_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c index 0893b77c385d..797bdbbcef76 100644 --- a/drivers/net/ethernet/nxp/lpc_eth.c +++ b/drivers/net/ethernet/nxp/lpc_eth.c @@ -1312,7 +1312,7 @@ static int lpc_eth_drv_probe(struct platform_device *pdev) } } - if (pldat->dma_buff_base_v == 0) { + if (pldat->dma_buff_base_v == NULL) { ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(32)); if (ret) goto err_out_free_irq;