diff options
author | Purnendu Kapadia <pro8linux@gmail.com> | 2014-09-15 13:06:36 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-19 16:35:53 -0700 |
commit | 50d0a21b61f22b38f881fa21d2ada6ab4a61f93f (patch) | |
tree | daa05444c144b6829b278b3730ae2ea4c5f9519e | |
parent | 1f0f6c9862b687db36f5e853402f76bc118ff0bf (diff) |
staging: android: sw_sync: checkpatch fixes
- 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>
-rw-r--r-- | drivers/staging/android/sw_sync.c | 7 | ||||
-rw-r--r-- | drivers/staging/android/sw_sync.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/drivers/staging/android/sw_sync.c b/drivers/staging/android/sw_sync.c index 863d4b17387a..c90838d36953 100644 --- a/drivers/staging/android/sw_sync.c +++ b/drivers/staging/android/sw_sync.c @@ -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 *) diff --git a/drivers/staging/android/sw_sync.h b/drivers/staging/android/sw_sync.h index 1a50669ec8a9..c87ae9ebf267 100644 --- a/drivers/staging/android/sw_sync.h +++ b/drivers/staging/android/sw_sync.h @@ -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; } |