Skip to contentSkip to conversation

staging: sm750fb: Remove parentheses from return arguments

PATCH New Amitoj Kaur Chawla 1 participant 1 message Feb 24, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: sm750fb: Remove parentheses from return arguments

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>

---
 drivers/staging/sm750fb/ddk750_hwi2c.c  | 4 ++--
 drivers/staging/sm750fb/ddk750_sii164.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/sm750fb/ddk750_hwi2c.c +2 -2
index 231c021..39c3e1c 100644
@@ -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
drivers/staging/sm750fb/ddk750_sii164.c +1 -1
index 9fd6afb..67f36e7 100644
@@ -236,7 +236,7 @@ long sii164InitChip(
 	}
 
 	/* Return -1 if initialization fails. */
-	return (-1);
+	return -1;
 }
 
 
Signature · 1 line
1.9.1