Skip to contentSkip to conversation

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

PATCH New Qiang Ma 1 participant 1 message Mar 9, 2021 Char and misc drivers

lore
Share & tools
lore

Qiang Ma

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/char/lp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/char/lp.c +2 -2
index 862c2fd933c7..0e22e3b0a04e 100644
@@ -546,7 +546,7 @@ static int lp_open(struct inode *inode, struct file *file)
 	}
 	/* Determine if the peripheral supports ECP mode */
 	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,
 				 IEEE1284_MODE_ECP)) {
 		printk(KERN_INFO "lp%d: ECP mode\n", minor);
@@ -590,7 +590,7 @@ static int lp_do_ioctl(unsigned int minor, unsigned int cmd,
 		return -ENODEV;
 	if ((LP_F(minor) & LP_EXIST) == 0)
 		return -ENODEV;
-	switch ( cmd ) {
+	switch (cmd) {
 		case LPTIME:
 			if (arg > UINT_MAX / HZ)
 				return -EINVAL;
Signature · 1 line
2.20.1