From b9a32da82f748aaff449ee4204ffd982dfe87f17 Mon Sep 17 00:00:00 2001 From: Dmitry Kovalenko Date: Thu, 24 Nov 2016 09:42:51 +0300 Subject: [PATCH] Fix SVACE issue - redundant NULL check Change-Id: I660d96fb63b2d8f1ac86154da564cab6e49dc602 Signed-off-by: Dmitry Kovalenko --- helper/get_got.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/get_got.c b/helper/get_got.c index 8595adb..d15aba0 100644 --- a/helper/get_got.c +++ b/helper/get_got.c @@ -152,7 +152,7 @@ int lmap_phdr_info(const struct link_map *map, struct phdr_info *info) const struct ext_map *emap = (const struct ext_map *)map; struct ext_map *temap = (struct ext_map *)emap->l_real; - if (map == NULL || info == NULL) + if (info == NULL) return -1; /* As it is made in iteratephdr */ -- 2.7.4