Commit 95e04eb0 authored by Qiang Ma's avatar Qiang Ma Committed by Greg Kroah-Hartman

char: lp: remove redundant space around (inside) parenthesized expressions

These two lines of code don't meet the linux kernel style,
and use a space after these keywords:
if, switch, case, for, do, while.
Do not add spaces around (inside) parenthesized expressions.
So remove the redundant space.
Signed-off-by: default avatarQiang Ma <maqianga@uniontech.com>
Link: https://lore.kernel.org/r/20210309072059.22107-1-maqianga@uniontech.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6b3bc828
...@@ -546,7 +546,7 @@ static int lp_open(struct inode *inode, struct file *file) ...@@ -546,7 +546,7 @@ static int lp_open(struct inode *inode, struct file *file)
} }
/* Determine if the peripheral supports ECP mode */ /* Determine if the peripheral supports ECP mode */
lp_claim_parport_or_block(&lp_table[minor]); lp_claim_parport_or_block(&lp_table[minor]);
if ( (lp_table[minor].dev->port->modes & PARPORT_MODE_ECP) && if ((lp_table[minor].dev->port->modes & PARPORT_MODE_ECP) &&
!parport_negotiate(lp_table[minor].dev->port, !parport_negotiate(lp_table[minor].dev->port,
IEEE1284_MODE_ECP)) { IEEE1284_MODE_ECP)) {
printk(KERN_INFO "lp%d: ECP mode\n", minor); printk(KERN_INFO "lp%d: ECP mode\n", minor);
...@@ -590,7 +590,7 @@ static int lp_do_ioctl(unsigned int minor, unsigned int cmd, ...@@ -590,7 +590,7 @@ static int lp_do_ioctl(unsigned int minor, unsigned int cmd,
return -ENODEV; return -ENODEV;
if ((LP_F(minor) & LP_EXIST) == 0) if ((LP_F(minor) & LP_EXIST) == 0)
return -ENODEV; return -ENODEV;
switch ( cmd ) { switch (cmd) {
case LPTIME: case LPTIME:
if (arg > UINT_MAX / HZ) if (arg > UINT_MAX / HZ)
return -EINVAL; return -EINVAL;
......
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