char: lp: do not use return as a function
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sun, 25 Nov 2018 19:47:34 +0000 (19:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2018 07:30:55 +0000 (08:30 +0100)
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>
drivers/char/lp.c

index 65bf322..4153c6f 100644 (file)
@@ -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 {