summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2018-03-17 17:41:36 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2018-03-17 17:41:36 +0100
commitba8bf1b26ac99d852d19496e6b2b81604f2f0116 (patch)
tree2bf07a49e1db475d1d8967794763fe4685e79f81
parentd6d5654de516eeff3d20fd1dc744825fd3d32bd4 (diff)
Remove always-true check in search_part()
-rw-r--r--src/godmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/godmode.c b/src/godmode.c
index daf38ec..107d023 100644
--- a/src/godmode.c
+++ b/src/godmode.c
@@ -675,7 +675,7 @@ static list_part_t *search_part(disk_t *disk_car, const list_part_t *list_part_o
int res=0;
partition->part_size=(uint64_t)0;
partition->part_offset=search_location;
- if(res<=0 && test_nbr==0)
+ if(test_nbr==0)
{
if(search_now_raid>0 || fast_mode>1)
{ /* Search Linux software RAID */