All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: sm750fb: Remove space after cast
@ 2016-02-22 23:11 Dilek Uzulmez
  2016-03-08 18:36 ` Dilek Uzulmez
  0 siblings, 1 reply; 3+ messages in thread
From: Dilek Uzulmez @ 2016-02-22 23:11 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: Dilek Uzulmez

Remove unnecessary space after cast. Problem found using checkpatch.pl
CHECK: No space is necessary after a cast

Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com>
---
 drivers/staging/sm750fb/ddk750_chip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c
index 5e6798e..0251eab 100644
--- a/drivers/staging/sm750fb/ddk750_chip.c
+++ b/drivers/staging/sm750fb/ddk750_chip.c
@@ -146,7 +146,7 @@ void setMemoryClock(unsigned int frequency)
 			frequency = MHz(336);
 
 		/* Calculate the divisor */
-		divisor = (unsigned int) roundedDiv(getChipClock(), frequency);
+		divisor = (unsigned int)roundedDiv(getChipClock(), frequency);
 
 		/* Set the corresponding divisor in the register. */
 		ulReg = PEEK32(CURRENT_GATE);
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Staging: sm750fb: Remove space after cast
  2016-02-22 23:11 [PATCH] Staging: " Dilek Uzulmez
@ 2016-03-08 18:36 ` Dilek Uzulmez
  0 siblings, 0 replies; 3+ messages in thread
From: Dilek Uzulmez @ 2016-03-08 18:36 UTC (permalink / raw)
  To: outreachy-kernel

[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]

Did you check this ?
On Feb 23, 2016 1:11 AM, "Dilek Uzulmez" <dilekuzulmez@gmail.com> wrote:

> Remove unnecessary space after cast. Problem found using checkpatch.pl
> CHECK: No space is necessary after a cast
>
> Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com>
> ---
>  drivers/staging/sm750fb/ddk750_chip.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/sm750fb/ddk750_chip.c
> b/drivers/staging/sm750fb/ddk750_chip.c
> index 5e6798e..0251eab 100644
> --- a/drivers/staging/sm750fb/ddk750_chip.c
> +++ b/drivers/staging/sm750fb/ddk750_chip.c
> @@ -146,7 +146,7 @@ void setMemoryClock(unsigned int frequency)
>                         frequency = MHz(336);
>
>                 /* Calculate the divisor */
> -               divisor = (unsigned int) roundedDiv(getChipClock(),
> frequency);
> +               divisor = (unsigned int)roundedDiv(getChipClock(),
> frequency);
>
>                 /* Set the corresponding divisor in the register. */
>                 ulReg = PEEK32(CURRENT_GATE);
> --
> 1.9.1
>
>

[-- Attachment #2: Type: text/html, Size: 1549 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] staging: sm750fb: Remove space after cast
@ 2018-10-05 13:58 Mamta Shukla
  0 siblings, 0 replies; 3+ messages in thread
From: Mamta Shukla @ 2018-10-05 13:58 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh, sudipm.mukherjee, teddy.wang, mamtashukla555

Remove space after cast to fix checkpatch issue.
CHECK: No space is necessary after a cast

Signed-off-by: Mamta Shukla <mamtashukla555@gmail.com>
---
 drivers/staging/sm750fb/ddk750_sii164.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/sm750fb/ddk750_sii164.c b/drivers/staging/sm750fb/ddk750_sii164.c
index 4b34a08..8391f57 100644
--- a/drivers/staging/sm750fb/ddk750_sii164.c
+++ b/drivers/staging/sm750fb/ddk750_sii164.c
@@ -39,8 +39,8 @@ unsigned short sii164GetVendorID(void)
 {
 	unsigned short vendorID;
 
-	vendorID = ((unsigned short) i2cReadReg(SII164_I2C_ADDRESS, SII164_VENDOR_ID_HIGH) << 8) |
-		    (unsigned short) i2cReadReg(SII164_I2C_ADDRESS, SII164_VENDOR_ID_LOW);
+	vendorID = ((unsigned short)i2cReadReg(SII164_I2C_ADDRESS, SII164_VENDOR_ID_HIGH) << 8) |
+		    (unsigned short)i2cReadReg(SII164_I2C_ADDRESS, SII164_VENDOR_ID_LOW);
 
 	return vendorID;
 }
@@ -56,8 +56,8 @@ unsigned short sii164GetDeviceID(void)
 {
 	unsigned short deviceID;
 
-	deviceID = ((unsigned short) i2cReadReg(SII164_I2C_ADDRESS, SII164_DEVICE_ID_HIGH) << 8) |
-		    (unsigned short) i2cReadReg(SII164_I2C_ADDRESS, SII164_DEVICE_ID_LOW);
+	deviceID = ((unsigned short)i2cReadReg(SII164_I2C_ADDRESS, SII164_DEVICE_ID_HIGH) << 8) |
+		    (unsigned short)i2cReadReg(SII164_I2C_ADDRESS, SII164_DEVICE_ID_LOW);
 
 	return deviceID;
 }
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-05 13:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-05 13:58 [PATCH] staging: sm750fb: Remove space after cast Mamta Shukla
  -- strict thread matches above, loose matches on Subject: below --
2016-02-22 23:11 [PATCH] Staging: " Dilek Uzulmez
2016-03-08 18:36 ` Dilek Uzulmez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.