Skip to contentSkip to conversation

staging: android: sw_sync: checkpatch fixes

PATCH New Purnendu Kapadia 1 participant 1 message Sep 15, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: android: sw_sync: checkpatch fixes

- no space after cast
- allignment should match open parenthesis
- remove unnecessary new line

---
 drivers/staging/android/sw_sync.c | 7 +++----
 drivers/staging/android/sw_sync.h | 2 +-
 2 files changed, 4 insertions(+), 5 deletions(-)
drivers/staging/android/sw_sync.c +3 -4
index 863d4b1..c90838d 100644
@@ -48,11 +48,11 @@ EXPORT_SYMBOL(sw_sync_pt_create);
 
 static struct sync_pt *sw_sync_pt_dup(struct sync_pt *sync_pt)
 {
-	struct sw_sync_pt *pt = (struct sw_sync_pt *) sync_pt;
+	struct sw_sync_pt *pt = (struct sw_sync_pt *)sync_pt;
 	struct sw_sync_timeline *obj =
 		(struct sw_sync_timeline *)sync_pt_parent(sync_pt);
 
-	return (struct sync_pt *) sw_sync_pt_create(obj, pt->value);
+	return (struct sync_pt *)sw_sync_pt_create(obj, pt->value);
 }
 
 static int sw_sync_pt_has_signaled(struct sync_pt *sync_pt)
@@ -94,7 +94,7 @@ static void sw_sync_timeline_value_str(struct sync_timeline *sync_timeline,
 }
 
 static void sw_sync_pt_value_str(struct sync_pt *sync_pt,
-				       char *str, int size)
+				 char *str, int size)
 {
 	struct sw_sync_pt *pt = (struct sw_sync_pt *)sync_pt;
 
@@ -111,7 +111,6 @@ static struct sync_timeline_ops sw_sync_timeline_ops = {
 	.pt_value_str = sw_sync_pt_value_str,
 };
 
-
 struct sw_sync_timeline *sw_sync_timeline_create(const char *name)
 {
 	struct sw_sync_timeline *obj = (struct sw_sync_timeline *)
drivers/staging/android/sw_sync.h +1 -1
index 1a50669..c87ae9e 100644
@@ -50,7 +50,7 @@ static inline void sw_sync_timeline_inc(struct sw_sync_timeline *obj, u32 inc)
 }
 
 static inline struct sync_pt *sw_sync_pt_create(struct sw_sync_timeline *obj,
-		u32 value)
+						u32 value)
 {
 	return NULL;
 }
Signature · 1 line
1.9.1