public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* broken cast in parport_pc
@ 2005-12-10  5:40 Dave Jones
  0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2005-12-10  5:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm

Spotted by a Fedora user. Compiling with DEBUG_PARPORT set fails
due to the broken cast.

Just remove it.

Signed-off-by: Dave Jones <davej@redhat.com>

--- linux-2.6.14/include/linux/parport_pc.h~	2005-12-10 00:26:42.000000000 -0500
+++ linux-2.6.14/include/linux/parport_pc.h	2005-12-10 00:38:57.000000000 -0500
@@ -86,7 +86,7 @@ extern __inline__ void dump_parport_stat
 	unsigned char dcr = inb (CONTROL (p));
 	unsigned char dsr = inb (STATUS (p));
 	static char *ecr_modes[] = {"SPP", "PS2", "PPFIFO", "ECP", "xXx", "yYy", "TST", "CFG"};
-	const struct parport_pc_private *priv = (parport_pc_private *)p->physport->private_data;
+	const struct parport_pc_private *priv = p->physport->private_data;
 	int i;
 
 	printk (KERN_DEBUG "*** parport state (%s): ecr=[%s", str, ecr_modes[(ecr & 0xe0) >> 5]);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-10  5:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-10  5:40 broken cast in parport_pc Dave Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox