mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
[PATCH] broken cast in parport_pc
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> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
bf8d5c52c3
commit
68799398ce
@ -86,7 +86,7 @@ extern __inline__ void dump_parport_state (char *str, struct parport *p)
|
||||
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]);
|
||||
|
Loading…
Reference in New Issue
Block a user