Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp129607pxf; Wed, 17 Mar 2021 00:50:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4Mm3PNL7sXrft8/eO5dn7aA0yLriUSV8Pu4bErByGA5fEG31/k3TYAPcWer6vha9aTcDL X-Received: by 2002:a17:906:38da:: with SMTP id r26mr34826326ejd.251.1615967406361; Wed, 17 Mar 2021 00:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615967406; cv=none; d=google.com; s=arc-20160816; b=kuZn7Vm8DyJevlTRmF6HEvcrs4e6JzsdMCVfZrJS3j1Iva9TB1/tR4EYhzI4Z6c2i4 /CsGV6K0mxzWZaS7zDbiyQk5FWVwezWYRQ+FZLjltfg7P+B3gPxZ3t1T/bmWrxFJotcJ 5k/3YvsHtdmtPV3EwE9o0LIvn4BPCWXuxD/RsnqJQSzssCsinSYr6SnRldB8iGugwnPw pPFr3DjXNg0tomjt9IvSDlkatGKgCQvk7T+OiHmUO4cllMSONFa+PvjWtg9q4YX3Nq2r aPYT9RGHIkyaqvkC4Dp5L9CHUdgmodI8xM4v85s52Lq14BC5wCFJ23u3/MkLDmrCnSLJ 01Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=iNawTDAG3RG6bM5PcDgVt1T2pEk183MBYgHGer1bnKQ=; b=l+H7ThtSo3UTblCfo3ZWOKMsHtLN118HMA241ArC2zgIhN3yTeenLwew00p3+h5jPF mzpExVkNSkg74FOoPQcUvzjeCqxHqJIBtwlZedofUSYVy8xFP9WJqwR15EhN0plifeCT c0kM/JhHEKAozpnMmNUluICKC6oUPfIHo86GpSliNjE5FnoT6rSZBcfo8PIHmmKWsXP6 ICt/v/mjffyq7vr7mfb74E5tc8gQ7JI1YboUbiQsa4z9Fxrir3cdYPU+srOcudWMBSDg n0drzmKic7Rt4RBYoypSh/0V5+1n13dphwtpqnEq2AtHXG8QBN+/+sXtjbPeSwSS2jea Poqw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fi16si15963808ejb.239.2021.03.17.00.49.43; Wed, 17 Mar 2021 00:50:06 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230260AbhCQHrw (ORCPT + 99 others); Wed, 17 Mar 2021 03:47:52 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:36109 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230250AbhCQHrb (ORCPT ); Wed, 17 Mar 2021 03:47:31 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R251e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0USESriJ_1615967247; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0USESriJ_1615967247) by smtp.aliyun-inc.com(127.0.0.1); Wed, 17 Mar 2021 15:47:27 +0800 From: Yang Li To: tony.luck@intel.com Cc: qiuxu.zhuo@intel.com, bp@alien8.de, mchehab@kernel.org, james.morse@arm.com, rric@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] EDAC: use NULL instead of using plain integer as pointer Date: Wed, 17 Mar 2021 15:47:25 +0800 Message-Id: <1615967245-35819-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes the following sparse warnings: drivers/edac/sb_edac.c:433:10: warning: Using plain integer as NULL pointer drivers/edac/sb_edac.c:499:10: warning: Using plain integer as NULL pointer drivers/edac/sb_edac.c:570:10: warning: Using plain integer as NULL pointer drivers/edac/sb_edac.c:614:10: warning: Using plain integer as NULL pointer drivers/edac/sb_edac.c:680:10: warning: Using plain integer as NULL pointer Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/edac/sb_edac.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index 93daa42..a99df55 100644 --- a/drivers/edac/sb_edac.c +++ b/drivers/edac/sb_edac.c @@ -433,7 +433,7 @@ struct sbridge_pvt { static const struct pci_id_table pci_dev_descr_sbridge_table[] = { PCI_ID_TABLE_ENTRY(pci_dev_descr_sbridge, ARRAY_SIZE(pci_dev_descr_sbridge), 1, SANDY_BRIDGE), - {0,} /* 0 terminated list. */ + {NULL,} /* 0 terminated list. */ }; /* This changes depending if 1HA or 2HA: @@ -499,7 +499,7 @@ struct sbridge_pvt { static const struct pci_id_table pci_dev_descr_ibridge_table[] = { PCI_ID_TABLE_ENTRY(pci_dev_descr_ibridge, 12, 2, IVY_BRIDGE), - {0,} /* 0 terminated list. */ + {NULL,} /* 0 terminated list. */ }; /* Haswell support */ @@ -570,7 +570,7 @@ struct sbridge_pvt { static const struct pci_id_table pci_dev_descr_haswell_table[] = { PCI_ID_TABLE_ENTRY(pci_dev_descr_haswell, 13, 2, HASWELL), - {0,} /* 0 terminated list. */ + {NULL,} /* 0 terminated list. */ }; /* Knight's Landing Support */ @@ -614,7 +614,7 @@ struct sbridge_pvt { static const struct pci_id_table pci_dev_descr_knl_table[] = { PCI_ID_TABLE_ENTRY(pci_dev_descr_knl, ARRAY_SIZE(pci_dev_descr_knl), 1, KNIGHTS_LANDING), - {0,} + {NULL,} }; /* @@ -680,7 +680,7 @@ struct sbridge_pvt { static const struct pci_id_table pci_dev_descr_broadwell_table[] = { PCI_ID_TABLE_ENTRY(pci_dev_descr_broadwell, 10, 2, BROADWELL), - {0,} /* 0 terminated list. */ + {NULL,} /* 0 terminated list. */ }; -- 1.8.3.1