Commit f140cc6c authored by Dave Jones's avatar Dave Jones

[PATCH] Coding style police.

Various patches to make things conform to Documentation/CodingStyle
parent af8cdaa6
...@@ -3434,8 +3434,8 @@ set_line_char(struct cyclades_port * info) ...@@ -3434,8 +3434,8 @@ set_line_char(struct cyclades_port * info)
} }
#ifdef CY_DEBUG_DTR #ifdef CY_DEBUG_DTR
printk("cyc:set_line_char dropping DTR\n"); printk("cyc:set_line_char dropping DTR\n");
printk(" status: 0x%x, printk(" status: 0x%x, 0x%x\n",
0x%x\n", cy_readb(base_addr+(CyMSVR1<<index)), cy_readb(base_addr+(CyMSVR1<<index)),
cy_readb(base_addr+(CyMSVR2<<index))); cy_readb(base_addr+(CyMSVR2<<index)));
#endif #endif
}else{ }else{
......
...@@ -462,8 +462,8 @@ PKT *PacketP; ...@@ -462,8 +462,8 @@ PKT *PacketP;
rio_dprintk (RIO_DEBUG_CMD, "PACKET information: Length 0x%x (%d)\n", PacketP->len,PacketP->len ); rio_dprintk (RIO_DEBUG_CMD, "PACKET information: Length 0x%x (%d)\n", PacketP->len,PacketP->len );
rio_dprintk (RIO_DEBUG_CMD, "PACKET information: Control 0x%x (%d)\n", PacketP->control, PacketP->control); rio_dprintk (RIO_DEBUG_CMD, "PACKET information: Control 0x%x (%d)\n", PacketP->control, PacketP->control);
rio_dprintk (RIO_DEBUG_CMD, "PACKET information: Check 0x%x (%d)\n", PacketP->csum, PacketP->csum ); rio_dprintk (RIO_DEBUG_CMD, "PACKET information: Check 0x%x (%d)\n", PacketP->csum, PacketP->csum );
rio_dprintk (RIO_DEBUG_CMD, "COMMAND information: Host Port Number 0x%x, rio_dprintk (RIO_DEBUG_CMD, "COMMAND information: Host Port Number 0x%x, "
Command Code 0x%x\n", PktCmdP->PhbNum, PktCmdP->Command ); "Command Code 0x%x\n", PktCmdP->PhbNum, PktCmdP->Command );
return TRUE; return TRUE;
} }
......
...@@ -2605,7 +2605,7 @@ static int pmu_release(struct inode *inode, struct file *file) ...@@ -2605,7 +2605,7 @@ static int pmu_release(struct inode *inode, struct file *file)
disable_kernel_backlight--; disable_kernel_backlight--;
spin_unlock_irqrestore(&pmu_lock, flags); spin_unlock_irqrestore(&pmu_lock, flags);
} }
#endif defined(CONFIG_INPUT_ADBHID) && defined(CONFIG_PMAC_BACKLIGHT) #endif /* defined(CONFIG_INPUT_ADBHID) && defined(CONFIG_PMAC_BACKLIGHT) */
kfree(pp); kfree(pp);
} }
unlock_kernel(); unlock_kernel();
......
...@@ -1416,7 +1416,7 @@ static int zr36060_reset(struct zoran *zr) ...@@ -1416,7 +1416,7 @@ static int zr36060_reset(struct zoran *zr)
zr36060_sleep(zr, 0); zr36060_sleep(zr, 0);
post_office_write(zr, 3, 0, 0); post_office_write(zr, 3, 0, 0);
udelay(2); udelay(2);
default: default:;
} }
return 0; return 0;
} }
......
...@@ -549,9 +549,12 @@ int atm_proc_dev_register(struct atm_dev *dev) ...@@ -549,9 +549,12 @@ int atm_proc_dev_register(struct atm_dev *dev)
digits = 0; digits = 0;
for (num = dev->number; num; num /= 10) digits++; for (num = dev->number; num; num /= 10) digits++;
if (!digits) digits++; if (!digits) digits++;
dev->proc_name = kmalloc(strlen(dev->type)+digits+2,GFP_KERNEL);
if (!dev->proc_name) goto fail1; dev->proc_name = kmalloc(strlen(dev->type) + digits + 2, GFP_KERNEL);
if (!dev->proc_name)
goto fail1;
sprintf(dev->proc_name,"%s:%d",dev->type, dev->number); sprintf(dev->proc_name,"%s:%d",dev->type, dev->number);
dev->proc_entry = create_proc_entry(dev->proc_name, 0, atm_proc_root); dev->proc_entry = create_proc_entry(dev->proc_name, 0, atm_proc_root);
if (!dev->proc_entry) if (!dev->proc_entry)
goto fail0; goto fail0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment