From patchwork Tue Jun 1 16:00:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 103574 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o51G0O2G012286 for ; Tue, 1 Jun 2010 16:00:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932147Ab0FAQAX (ORCPT ); Tue, 1 Jun 2010 12:00:23 -0400 Received: from mail.vyatta.com ([76.74.103.46]:43765 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932118Ab0FAQAW (ORCPT ); Tue, 1 Jun 2010 12:00:22 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.vyatta.com (Postfix) with ESMTP id 2E8A01828EF3; Tue, 1 Jun 2010 08:59:05 -0700 (PDT) X-Virus-Scanned: amavisd-new at tahiti.vyatta.com Received: from mail.vyatta.com ([127.0.0.1]) by localhost (mail.vyatta.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BJs6qJ-tj8aj; Tue, 1 Jun 2010 08:59:00 -0700 (PDT) Received: from nehalam (pool-74-107-135-205.ptldor.fios.verizon.net [74.107.135.205]) by mail.vyatta.com (Postfix) with ESMTP id 3674F1828EE4; Tue, 1 Jun 2010 08:59:00 -0700 (PDT) Date: Tue, 1 Jun 2010 09:00:16 -0700 From: Stephen Hemminger To: Jesse Barnes Cc: linux-pci@vger.kernel.org Subject: [PATCH] pci: sparse warning (trivial) Message-ID: <20100601090016.069fcd33@nehalam> Organization: Vyatta X-Mailer: Claws Mail 3.7.5 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 01 Jun 2010 16:00:24 +0000 (UTC) --- a/drivers/pci/bus.c 2010-06-01 08:51:28.361314729 -0700 +++ b/drivers/pci/bus.c 2010-06-01 08:51:36.769714125 -0700 @@ -56,7 +56,7 @@ void pci_bus_remove_resources(struct pci int i; for (i = 0; i < PCI_BRIDGE_RESOURCE_NUM; i++) - bus->resource[i] = 0; + bus->resource[i] = NULL; list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) { list_del(&bus_res->list);