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: 290747 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id BFEF72C00BE for ; Wed, 13 Nov 2013 06:09:20 +1100 (EST) 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 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;