From 9590cb42766ac0120d2c2e9e766de3c17d67a902 Mon Sep 17 00:00:00 2001 From: Maciej Naruszewicz Date: Tue, 2 Oct 2012 16:37:48 +1000 Subject: Fix return code for --detail-platform Variable 'err' is initially set to 1, so changing its value with '|=' won't set it to 0 even if the operation is successful. Signed-off-by: Maciej Naruszewicz Signed-off-by: NeilBrown --- Detail.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Detail.c b/Detail.c index db38916b..f3a1e3e1 100644 --- a/Detail.c +++ b/Detail.c @@ -640,6 +640,7 @@ int Detail_Platform(struct superswitch *ss, int scan, int verbose, int export) if (!scan) return err; + err = 0; for (i = 0; superlist[i]; i++) { struct superswitch *meta = superlist[i]; -- cgit v1.2.3