Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1396718ybh; Sun, 19 Jul 2020 18:48:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUplbiw1wHzqVIIbyTbFdade0CUr258L3DAwpD03Wun60vnD/MGShANR+Fi1EaddOAGaZ9 X-Received: by 2002:aa7:c442:: with SMTP id n2mr19064840edr.309.1595209738065; Sun, 19 Jul 2020 18:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595209738; cv=none; d=google.com; s=arc-20160816; b=GlSlDsxSHmpb7q2vSk3WRlwargk2Ia4H08ODPZ+HhRweupgRT46lRkrM3N82Z29CAC /eUWudlIms7rH/0W0jCvFKhkBuU3Z2q5skqlo3MDDJPxFOtLgfmPaOr5Z2GH69+/CBwR eGbQ9u7/TqcGj2AIzBdtfx/guzJx9McUrQLjwcLpw6akaMopbhuHp79+TDZTaQuBozYb yn4bdSXfidWXJkBHU7tEjG2rxme6JLF5GA44FpN3wiNa2eHESAXDWKwuE7Xx229QEkkw 80/PJe1+LPlchTHWAJBotm9QfB21FGUM1QjX0vulFEWJwiCOqlu+5+UJ8vu15Dia6iqw 2kxA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=9IoyCh718RhCtClCT0DDqxmr43r4W1PkXFBheXiGolc=; b=KWlm2GN21Izoy2I+SLju810KaYw1LHZes+D37HQsCZLMQ5TrxHv69Cl54PK+GSnNaT TU8Z5Ih/eS0bA0C/tgKrBaEfy8ekeK4Pf2HtAXTIBHQXed1weq+hgvq5sugl91cxdrMd MDTbKGn11jyOoNaBjf4A4NnVs2/6E5OcId6UDI3rEjKPeQxwynoPOvExB8pJEJhsbqWO MxUA7nRUEyeRVaOw33WtUiKGb2Wkv4T+bihZLM5swkou81I8LmBwmiN/TukDHib7CR5Y GI/0L3JwVdX9PiT0pzYo5EiiP36Z1V63J3Y7CqyFkjuEQqKHzQaYzJDJ9mHfCX9e701a svSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mf17si9488421ejb.86.2020.07.19.18.48.36; Sun, 19 Jul 2020 18:48:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726714AbgGTBsZ (ORCPT + 99 others); Sun, 19 Jul 2020 21:48:25 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:44898 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726225AbgGTBsZ (ORCPT ); Sun, 19 Jul 2020 21:48:25 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 93000E02998C18DC669A; Mon, 20 Jul 2020 09:48:22 +0800 (CST) Received: from [127.0.0.1] (10.174.179.81) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Mon, 20 Jul 2020 09:48:18 +0800 Subject: Re: [PATCH -next] net: ena: use NULL instead of zero To: Joe Perches , , , , , , , , CC: , References: <20200718115633.37464-1-wanghai38@huawei.com> <3093bc36c2ad86170e2e90a3451e5962d0815122.camel@perches.com> From: "wanghai (M)" Message-ID: Date: Mon, 20 Jul 2020 09:48:17 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <3093bc36c2ad86170e2e90a3451e5962d0815122.camel@perches.com> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.81] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2020/7/18 23:06, Joe Perches ะด??: > On Sat, 2020-07-18 at 19:56 +0800, Wang Hai wrote: >> Fix sparse build warning: >> >> drivers/net/ethernet/amazon/ena/ena_netdev.c:2193:34: warning: >> Using plain integer as NULL pointer > Better to remove the initialization altogether and > move the declaration into the loop. Thanks for your advice. I'll send a v2 patch.