Skip to contentSkip to conversation

taging: fbtft: Add space around '='

PATCH In review [email protected] 2 participants 2 messages Jul 17, 2023 – Jul 18, 2023 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 taging: fbtft: Add space around '='

Fix checkpatch warnings:

./drivers/staging/media/av7110/dvb_filter.c:105: ERROR: spaces required around that '=' (ctx:VxV) ./drivers/staging/media/av7110/dvb_filter.c:106: ERROR: spaces required around that '=' (ctx:VxV) ./drivers/staging/media/av7110/dvb_filter.c:108: ERROR: spaces required around that '=' (ctx:VxV) ./drivers/staging/media/av7110/dvb_filter.c:112: ERROR: spaces required around that '=' (ctx:VxV)

---
 drivers/staging/media/av7110/dvb_filter.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/media/av7110/dvb_filter.c +4 -4
index 8c2eca5..014fa1f 100644
@@ -102,14 +102,14 @@ int dvb_filter_pes2ts(struct dvb_filter_pes2ts *p2ts, unsigned char *pes,
     }
     if (!len)
         return 0;
-    buf[3]=0x30|((p2ts->cc++)&0x0f);
-    rest=183-len;
+    buf[3] = 0x30|((p2ts->cc++)&0x0f);
+    rest = 183-len;
     if (rest) {
-        buf[5]=0x00;
+        buf[5] = 0x00;
         if (rest-1)
             memset(buf+6, 0xff, rest-1);
     }
-    buf[4]=rest;
+    buf[4] = rest;
     memcpy(buf+5+rest, pes, len);
     return p2ts->cb(p2ts->priv, buf);
 }
#2 lore raw
Quoted 31 lines

-----Original Message-----
From: [email protected] <[email protected]>
Sent: Monday, July 17, 2023 4:16 PM
To: [email protected]; [email protected]
Cc: [email protected]; [email protected]
Subject: [PATCH] taging: fbtft: Add space around '='

Fix checkpatch warnings:

./drivers/staging/media/av7110/dvb_filter.c:105: ERROR: spaces required around that '=' (ctx:VxV) ./drivers/staging/media/av7110/dvb_filter.c:106: ERROR: spaces required around that '=' (ctx:VxV) ./drivers/staging/media/av7110/dvb_filter.c:108: ERROR: spaces required around that '=' (ctx:VxV) ./drivers/staging/media/av7110/dvb_filter.c:112: ERROR: spaces required around that '=' (ctx:VxV)

---
  drivers/staging/media/av7110/dvb_filter.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/media/av7110/dvb_filter.c +0 -0
index 8c2eca5..014fa1f 100644

drivers/staging/media/av7110/dvb_filter.c int dvb_filter_pes2ts(struct dvb_filter_pes2ts · line 107

Quoted 8 lines
drivers/staging/media/av7110/dvb_filter.c +2 -2
@@ -102,14 +102,14 @@ int dvb_filter_pes2ts(struct dvb_filter_pes2ts
 *p2ts, unsigned char *pes,
      }
      if (!len)
          return 0;
-    buf[3]=0x30|((p2ts->cc++)&0x0f);
-    rest=183-len;
+    buf[3] = 0x30|((p2ts->cc++)&0x0f);
+    rest = 183-len;

Adding spaces around operators | and & would look better:
buf[3] = 0x30 | ((p2ts->cc++) & 0x0f);
rest = 183 - len;