diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2016-05-31 16:59:02 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-17 21:17:40 -0700 |
commit | 724812d6a66e3a1524f7eb78b900bc0624b6d7dc (patch) | |
tree | 48e758b3376b55405125cecb572fe5a705835fed /drivers/staging/android | |
parent | 4be6e00cd34210d5b3d37ddb7bf46137cf5a99b1 (diff) | |
download | blackbird-op-linux-724812d6a66e3a1524f7eb78b900bc0624b6d7dc.tar.gz blackbird-op-linux-724812d6a66e3a1524f7eb78b900bc0624b6d7dc.zip |
staging/android: remove unnecessary check for fence
When we call sync_print_fence() fence is always valid.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android')
-rw-r--r-- | drivers/staging/android/sync_debug.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/android/sync_debug.c b/drivers/staging/android/sync_debug.c index dc85d5f8cbd0..6282046ec132 100644 --- a/drivers/staging/android/sync_debug.c +++ b/drivers/staging/android/sync_debug.c @@ -109,7 +109,7 @@ static void sync_print_fence(struct seq_file *s, struct fence *fence, bool show) seq_printf(s, "@%lld.%09ld", (s64)ts64.tv_sec, ts64.tv_nsec); } - if ((!fence || fence->ops->timeline_value_str) && + if (fence->ops->timeline_value_str && fence->ops->fence_value_str) { char value[64]; bool success; @@ -117,10 +117,9 @@ static void sync_print_fence(struct seq_file *s, struct fence *fence, bool show) fence->ops->fence_value_str(fence, value, sizeof(value)); success = strlen(value); - if (success) + if (success) { seq_printf(s, ": %s", value); - if (success && fence) { fence->ops->timeline_value_str(fence, value, sizeof(value)); |