From patchwork Tue Nov 12 19:07:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 3174601 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4BE74C045B for ; Tue, 12 Nov 2013 19:09:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 31A86205DD for ; Tue, 12 Nov 2013 19:09:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2994A205DB for ; Tue, 12 Nov 2013 19:09:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756106Ab3KLTIh (ORCPT ); Tue, 12 Nov 2013 14:08:37 -0500 Received: from gerard.telenet-ops.be ([195.130.132.48]:44244 "EHLO gerard.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755530Ab3KLTHh (ORCPT ); Tue, 12 Nov 2013 14:07:37 -0500 Received: from ayla.of.borg ([84.193.72.141]) by gerard.telenet-ops.be with bizsmtp id oj7a1m00d32ts5g0Hj7a8d; Tue, 12 Nov 2013 20:07:34 +0100 Received: from geert by ayla.of.borg with local (Exim 4.76) (envelope-from ) id 1VgJJG-0002TO-1N; Tue, 12 Nov 2013 20:07:34 +0100 From: Geert Uytterhoeven To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Geert Uytterhoeven , Bjorn Helgaas , linux-pci@vger.kernel.org Subject: [PATCH 04/12] PCI/portdrv: Remove superfluous name cast Date: Tue, 12 Nov 2013 20:07:17 +0100 Message-Id: <1384283245-9419-5-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1384283245-9419-1-git-send-email-geert@linux-m68k.org> References: <1384283245-9419-1-git-send-email-geert@linux-m68k.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP device_driver.name is "const char *" Signed-off-by: Geert Uytterhoeven Cc: Bjorn Helgaas Cc: linux-pci@vger.kernel.org --- drivers/pci/pcie/portdrv_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/pcie/portdrv_core.c b/drivers/pci/pcie/portdrv_core.c index 31063ac30992..833c18c3eb96 100644 --- a/drivers/pci/pcie/portdrv_core.c +++ b/drivers/pci/pcie/portdrv_core.c @@ -553,7 +553,7 @@ int pcie_port_service_register(struct pcie_port_service_driver *new) if (pcie_ports_disabled) return -ENODEV; - new->driver.name = (char *)new->name; + new->driver.name = new->name; new->driver.bus = &pcie_port_bus_type; new->driver.probe = pcie_port_probe_service; new->driver.remove = pcie_port_remove_service;