From patchwork Tue Jun 29 10:15:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kulikov Vasiliy X-Patchwork-Id: 108528 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o5TDIm3b012137 for ; Tue, 29 Jun 2010 13:19:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754891Ab0F2KPf (ORCPT ); Tue, 29 Jun 2010 06:15:35 -0400 Received: from fg-out-1718.google.com ([72.14.220.156]:3013 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755049Ab0F2KPc (ORCPT ); Tue, 29 Jun 2010 06:15:32 -0400 Received: by fg-out-1718.google.com with SMTP id e21so748226fga.1 for ; Tue, 29 Jun 2010 03:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=KvIG4HDMGlTUxVWJYs/aep/URjxYkbLoDRG9Vn9CeGA=; b=MonH0gVz6espmv4punDDFTOl05uc/GzeGcNmTn26wZ92/ciHkHH4HYkmKnoaVCOiWI Iw2bnmyyR/yOT2gZlml8FgdQ3bPMzxvCVynK7x4aLhKQiecxQ9I2hD+sggJxrAw/cPav AbOlOfBkm3MEfCqaRZ1X6Y8tPa1UI4Ecf9KJ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=VvNoSe0+Q+ZQmnlgbT0YqBlQUX4lMejaZ4vfhXh1hhdk5cX47L8fR7LOc9aNaQoOtV yjIz+QykBr7UZFYwrE+7Qe5qxF5t/NFijyQGrEUCNBHl/Fc+pHBpS7o6qL2B5FmbU4Kk KamNu0SxaLXYdEHaR8AgpiikVPmZoQUw6/2lg= Received: by 10.87.15.35 with SMTP id s35mr9091032fgi.12.1277806531594; Tue, 29 Jun 2010 03:15:31 -0700 (PDT) Received: from localhost (ppp91-77-40-207.pppoe.mtu-net.ru [91.77.40.207]) by mx.google.com with ESMTPS id 4sm13293901fge.0.2010.06.29.03.15.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 29 Jun 2010 03:15:31 -0700 (PDT) From: Kulikov Vasiliy To: Kernel Janitors Cc: Jesse Barnes , Greg Kroah-Hartman , Chris Wright , "Michael S. Tsirkin" , Michal Schmidt , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/25] pci-sysfs: remove casts from void* Date: Tue, 29 Jun 2010 14:15:28 +0400 Message-Id: <1277806529-31010-1-git-send-email-segooon@gmail.com> X-Mailer: git-send-email 1.7.0.4 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, 29 Jun 2010 13:19:03 +0000 (UTC) diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index afd2fbf..7f8bc8c 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c @@ -734,7 +734,7 @@ pci_mmap_resource(struct kobject *kobj, struct bin_attribute *attr, { struct pci_dev *pdev = to_pci_dev(container_of(kobj, struct device, kobj)); - struct resource *res = (struct resource *)attr->private; + struct resource *res = attr->private; enum pci_mmap_state mmap_type; resource_size_t start, end; int i;