Skip to content

Commit 6946edd

Browse files
iskaranthgregkh
authored andcommitted
staging: sm750fb: remove parantheses from return statements
found by checkpatch.pl :ERROR: return is not a function, parentheses are not required changes made using coccinelle script: @@ expression e,e1; @@ ( return (e / e1); | return -( e -) ; ) Signed-off-by: Supriya Karanth <[email protected]> Acked-by: Julia Lawall <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d2a6037 commit 6946edd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/staging/sm750fb/ddk750_chip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ unsigned int formatPllReg(pll_value_t *pPLL)
633633
| FIELD_VALUE(0, PANEL_PLL_CTRL, N, pPLL->N)
634634
| FIELD_VALUE(0, PANEL_PLL_CTRL, M, pPLL->M);
635635

636-
return(ulPllReg);
636+
return ulPllReg;
637637
}
638638

639639

drivers/staging/sm750fb/ddk750_swi2c.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ long swI2CWriteByte(unsigned char data)
304304
if (i<0xff)
305305
return 0;
306306
else
307-
return (-1);
307+
return -1;
308308
}
309309

310310
/*
@@ -408,10 +408,10 @@ long swI2CInit(
408408

409409
/* Return 0 if the GPIO pins to be used is out of range. The range is only from [0..63] */
410410
if ((i2cClkGPIO > 31) || (i2cDataGPIO > 31))
411-
return (-1);
411+
return -1;
412412

413413
if (getChipType() == SM750LE)
414-
return( swI2CInit_SM750LE(i2cClkGPIO, i2cDataGPIO) );
414+
return swI2CInit_SM750LE(i2cClkGPIO, i2cDataGPIO);
415415

416416
/* Initialize the GPIO pin for the i2c Clock Register */
417417
g_i2cClkGPIOMuxReg = GPIO_MUX;

0 commit comments

Comments
 (0)