Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: android: Cleanup style issues

This patch fixes the following checkpatch warnings:
- Remove else after return
- Add space after declaration

Tested by compilation only.

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Peter Senna Tschudin and committed by
Greg Kroah-Hartman
95451355 d8e1e012

+8 -3
+8 -3
drivers/staging/android/sync_debug.c
··· 74 74 { 75 75 if (status == 0) 76 76 return "signaled"; 77 - else if (status > 0) 77 + 78 + if (status > 0) 78 79 return "active"; 79 - else 80 - return "error"; 80 + 81 + return "error"; 81 82 } 82 83 83 84 static void sync_print_pt(struct seq_file *s, struct sync_pt *pt, bool fence) ··· 96 95 97 96 if (status <= 0) { 98 97 struct timeval tv = ktime_to_timeval(pt->base.timestamp); 98 + 99 99 seq_printf(s, "@%ld.%06ld", tv.tv_sec, tv.tv_usec); 100 100 } 101 101 102 102 if (parent->ops->timeline_value_str && 103 103 parent->ops->pt_value_str) { 104 104 char value[64]; 105 + 105 106 parent->ops->pt_value_str(pt, value, sizeof(value)); 106 107 seq_printf(s, ": %s", value); 107 108 if (fence) { ··· 125 122 126 123 if (obj->ops->timeline_value_str) { 127 124 char value[64]; 125 + 128 126 obj->ops->timeline_value_str(obj, value, sizeof(value)); 129 127 seq_printf(s, ": %s", value); 130 128 } ··· 238 234 for (i = 0; i < s.count; i += DUMP_CHUNK) { 239 235 if ((s.count - i) > DUMP_CHUNK) { 240 236 char c = s.buf[i + DUMP_CHUNK]; 237 + 241 238 s.buf[i + DUMP_CHUNK] = 0; 242 239 pr_cont("%s", s.buf + i); 243 240 s.buf[i + DUMP_CHUNK] = c;