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 <maciej.naruszewicz@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Maciej Naruszewicz 2012-10-02 16:37:48 +10:00 committed by NeilBrown
parent e50cf22073
commit 9590cb4276
1 changed files with 1 additions and 0 deletions

View File

@ -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];