[sysprof] kernel-symbol: code style cleanup



commit deecb04963077b5af776d4795e1db2f816e62d04
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jan 29 01:26:59 2018 -0800

    kernel-symbol: code style cleanup

 lib/symbols/sp-kernel-symbol-resolver.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/lib/symbols/sp-kernel-symbol-resolver.c b/lib/symbols/sp-kernel-symbol-resolver.c
index 1429b83..1bccf9e 100644
--- a/lib/symbols/sp-kernel-symbol-resolver.c
+++ b/lib/symbols/sp-kernel-symbol-resolver.c
@@ -41,7 +41,9 @@ sp_kernel_symbol_resolver_resolve_with_context (SpSymbolResolver *resolver,
   if (context != SP_ADDRESS_CONTEXT_KERNEL)
     return NULL;
 
-  if (NULL != (sym = sp_kernel_symbol_from_address (address)))
+  sym = sp_kernel_symbol_from_address (address);
+
+  if (sym != NULL)
     {
       *tag = linux_quark;
       return g_strdup (sym->name);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]