diff options
author | Maciej Naruszewicz <maciej.naruszewicz@intel.com> | 2012-10-02 08:37:48 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-10-02 08:37:48 +0200 |
commit | 9590cb42766ac0120d2c2e9e766de3c17d67a902 (patch) | |
tree | 07186d83910cd24ddab0aa41e995aa007230d063 /Detail.c | |
parent | imsm: Add --export option for --detail-platform (diff) | |
download | mdadm-9590cb42766ac0120d2c2e9e766de3c17d67a902.tar.xz mdadm-9590cb42766ac0120d2c2e9e766de3c17d67a902.zip |
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>
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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]; |