Skip to contentSkip to conversation

Staging: goldfish: Add space around '+'

PATCH In review Dilek Uzulmez 2 participants 3 messages Feb 22, 2016 – Mar 11, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: goldfish: Add space around '+'

Add space around operator '+'. Problem found using checkpatch.pl
CHECK: spaces preferred around that '+' (ctx:VxV)

---
 drivers/staging/goldfish/goldfish_audio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/goldfish/goldfish_audio.c +1 -1
index b0927e4..f1e1838 100644
@@ -63,7 +63,7 @@ struct goldfish_audio {
 #define AUDIO_READ(data, addr)		(readl(data->reg_base + addr))
 #define AUDIO_WRITE(data, addr, x)	(writel(x, data->reg_base + addr))
 #define AUDIO_WRITE64(data, addr, addr2, x)	\
-	(gf_write_dma_addr((x), data->reg_base + addr, data->reg_base+addr2))
+	(gf_write_dma_addr((x), data->reg_base + addr, data->reg_base + addr2))
 
 /*
  *  temporary variable used between goldfish_audio_probe() and
Signature · 1 line
1.9.1
#1 lore raw

Did you check this ?

Quoted 28 lines · Dilek Uzulmez

Add space around operator '+'. Problem found using checkpatch.pl
CHECK: spaces preferred around that '+' (ctx:VxV)

---
 drivers/staging/goldfish/goldfish_audio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/goldfish/goldfish_audio.c +1 -1
index b0927e4..f1e1838 100644
@@ -63,7 +63,7 @@ struct goldfish_audio {
 #define AUDIO_READ(data, addr)         (readl(data->reg_base + addr))
 #define AUDIO_WRITE(data, addr, x)     (writel(x, data->reg_base + addr))
 #define AUDIO_WRITE64(data, addr, addr2, x)    \
-       (gf_write_dma_addr((x), data->reg_base + addr,
 data->reg_base+addr2))
+       (gf_write_dma_addr((x), data->reg_base + addr, data->reg_base +
 addr2))
 

/*
* temporary variable used between goldfish_audio_probe() and
--
1.9.1

maintainer
#2 lore raw
In reply to Dilek Uzulmez
Quoted 7 lines · Dilek Uzulmez

Add space around operator '+'. Problem found using checkpatch.pl
CHECK: spaces preferred around that '+' (ctx:VxV)

---
 drivers/staging/goldfish/goldfish_audio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

This doesn't apply to my tree at all, I think someone else already did this :(