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:
parent
e50cf22073
commit
9590cb4276
1
Detail.c
1
Detail.c
|
@ -640,6 +640,7 @@ int Detail_Platform(struct superswitch *ss, int scan, int verbose, int export)
|
||||||
if (!scan)
|
if (!scan)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
err = 0;
|
||||||
for (i = 0; superlist[i]; i++) {
|
for (i = 0; superlist[i]; i++) {
|
||||||
struct superswitch *meta = superlist[i];
|
struct superswitch *meta = superlist[i];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue