summaryrefslogtreecommitdiff
path: root/drivers/char/lp.c
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2018-11-25 19:47:34 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-27 08:30:55 +0100
commit39992028c76c4dfcf26f965922fecb579b7f8d6e (patch)
tree86034636bc1b626f1850105d9ae047c9da42a365 /drivers/char/lp.c
parent1c3de93621b310276ae4d966a14ed01b711312c2 (diff)
char: lp: do not use return as a function
return is not a function, parentheses are not required. Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/lp.c')
-rw-r--r--drivers/char/lp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/lp.c b/drivers/char/lp.c
index 65bf32244f48..4153c6f5683a 100644
--- a/drivers/char/lp.c
+++ b/drivers/char/lp.c
@@ -184,7 +184,7 @@ static int lp_preempt(void *handle)
{
struct lp_struct *this_lp = (struct lp_struct *)handle;
set_bit(LP_PREEMPT_REQUEST, &this_lp->bits);
- return (1);
+ return 1;
}
@@ -199,7 +199,7 @@ static int lp_negotiate(struct parport * port, int mode)
parport_negotiate (port, mode);
}
- return (mode);
+ return mode;
}
static int lp_reset(int minor)
@@ -279,7 +279,7 @@ static int lp_wait_ready(int minor, int nonblock)
/* If we're not in compatibility mode, we're ready now! */
if (lp_table[minor].current_mode != IEEE1284_MODE_COMPAT) {
- return (0);
+ return 0;
}
do {