Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp312571ybh; Sat, 18 Jul 2020 04:58:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0ch9CW3ar/WMlw+AqJDhVmuFArxcV1+8XmTe2Gv1pstewHHufcB40Dc9Au+BmcpV+ufPn X-Received: by 2002:a17:906:7f90:: with SMTP id f16mr12434232ejr.507.1595073524582; Sat, 18 Jul 2020 04:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595073524; cv=none; d=google.com; s=arc-20160816; b=mAZV2qUfiV8vn0oufQ9Eejd7iUPgrdvHSNZEZO45nrGcAvp8tLVUOZjYxSjUdL4gAl OH9z9q6FsdvKg+KP+pI6aWf0ruj059DZRyP+eaGvrk0VwJDeH/+02Xvf8GZqnpw2zM9/ MwFreywN8QlgsBTDqpuQ+Q/pmZcFKbn4pufjaZj8F0ZnJj+9S1ktdxp7HAlgurXXPPsG +O0qxbRsLkWbFoNY8WgdEyWDQmzhpiyONz7rIOuCQEIQujhYxJ9VYDBtZDyXyDNd+BlX LC2wpS0vcmS7qBm8+kARWescPrtV/sduAk0WB9Hs1M2P8Y5jPXVu/2AjULPFKBg+cJBt kFJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=spZgwVVVhz1n58klQ3F0/b/+OymoyVI13dOqrEeGxzI=; b=vwemRQ4DQZCtNidrnmARnlZhXkOa0Y2BXOjvPCaaGmg+PM/RxTU+h0IB/0q14LoBhb 4WmhuoBCKovTyqgv8Hnayw5T4JExRR9DxZYJskcgbuQPyHL52Hq8I2XWdIY7zqtY7Bez LJvadcpWc+hV4G/+l/GO4cTk2uRFYeqKr9GqccLxbsJqSdmLhG5oxQUhxiLNa6dRSHHU iXkoWwnMNTXrqqonh+KUFUACv+NuSfNs9uqcUDoNHPPXduBr+B4PxHf6fGcz1BYZumbu c9YfjRafb3xDJbHc6ARQG0sczr+3GXOeLZbiYQJSu6NqdpTwg4jTjSJP5MEvm6oi8rfy 6yJg== 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 y18si6793329eds.226.2020.07.18.04.58.21; Sat, 18 Jul 2020 04:58:44 -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 S1726962AbgGRL6E (ORCPT + 99 others); Sat, 18 Jul 2020 07:58:04 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:42386 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726294AbgGRL6E (ORCPT ); Sat, 18 Jul 2020 07:58:04 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 39BF683B1E412CCBC0D4; Sat, 18 Jul 2020 19:58:01 +0800 (CST) Received: from huawei.com (10.175.113.133) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Sat, 18 Jul 2020 19:57:56 +0800 From: Wang Hai To: , , , , , , , CC: , Subject: [PATCH -next] net: ena: use NULL instead of zero Date: Sat, 18 Jul 2020 19:56:33 +0800 Message-ID: <20200718115633.37464-1-wanghai38@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.113.133] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse build warning: drivers/net/ethernet/amazon/ena/ena_netdev.c:2193:34: warning: Using plain integer as NULL pointer Reported-by: Hulk Robot Signed-off-by: Wang Hai --- drivers/net/ethernet/amazon/ena/ena_netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/ethernet/amazon/ena/ena_netdev.c index 91be3ffa1c5c..11303a4b94be 100644 --- a/drivers/net/ethernet/amazon/ena/ena_netdev.c +++ b/drivers/net/ethernet/amazon/ena/ena_netdev.c @@ -2190,7 +2190,7 @@ static void ena_del_napi_in_range(struct ena_adapter *adapter, static void ena_init_napi_in_range(struct ena_adapter *adapter, int first_index, int count) { - struct ena_napi *napi = {0}; + struct ena_napi *napi = NULL; int i; for (i = first_index; i < first_index + count; i++) { -- 2.17.1