[sysprof] kernel-symbol: code style cleanup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] kernel-symbol: code style cleanup
- Date: Mon, 29 Jan 2018 09:39:09 +0000 (UTC)
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]