]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: android: sw_sync: checkpatch fixes
authorPurnendu Kapadia <pro8linux@gmail.com>
Mon, 15 Sep 2014 12:06:36 +0000 (13:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 23:35:53 +0000 (16:35 -0700)
   - no space after cast
   - allignment should match open parenthesis
   - remove unnecessary new line

Signed-off-by: Purnendu Kapadia <pro8linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/sw_sync.c
drivers/staging/android/sw_sync.h

index 863d4b17387a8d0288795e3e23305bd8e7018596..c90838d369534c864b641b87209fe421c604cbb6 100644 (file)
@@ -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 *)
index 1a50669ec8a945de62a4602fb9ac91b3bf8fc431..c87ae9ebf267f6165b0cd6dfa6dcbf4fa44a9c5f 100644 (file)
@@ -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;
 }