]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: sm750fb: Remove parentheses from return arguments
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Wed, 24 Feb 2016 17:00:15 +0000 (22:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
Remove unnecessary parentheses from return arguments.

The Coccinelle semantic patch that makes this change is as follows:

// <smpl>
@@
identifier i;
constant c;
@@

return
- (
    \(i\|-i\|i(...)\|c\)
- )
  ;
// </smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_hwi2c.c
drivers/staging/sm750fb/ddk750_sii164.c

index 231c02114ed437a81a1a4c9564ca4d5c3fd43ac0..39c3e1cdbc0c310456d2b58bc890a606bf1b3b14 100644 (file)
@@ -63,7 +63,7 @@ static long hw_i2c_wait_tx_done(void)
                timeout--;
 
        if (timeout == 0)
-               return (-1);
+               return -1;
 
        return 0;
 }
@@ -248,7 +248,7 @@ int sm750_hw_i2c_write_reg(
        if (hw_i2c_write_data(addr, 2, value) == 2)
                return 0;
 
-       return (-1);
+       return -1;
 }
 
 #endif
index 9fd6afb009c24cd4194b93570e52f04a03846fbc..67f36e71da7ea39f76830bd434d90bdec79a283f 100644 (file)
@@ -236,7 +236,7 @@ long sii164InitChip(
        }
 
        /* Return -1 if initialization fails. */
-       return (-1);
+       return -1;
 }