discover/platform-powerpc: Fix logic for persistent IPMI boot settings
authorJeremy Kerr <jk@ozlabs.org>
Thu, 2 Apr 2015 09:59:30 +0000 (17:59 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 2 Apr 2015 09:59:30 +0000 (17:59 +0800)
We should only clear the IPMI bootdev if the setting *isn't* persistent.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/platform-powerpc.c

index f6a78a9e52a276dc847f1401173d3ffe5b99afbb..395f1349312e8deeeea240eecfa876515d0c16f1 100644 (file)
@@ -836,7 +836,7 @@ static void pre_boot(struct platform *p, const struct config *config)
 {
        struct platform_powerpc *platform = to_platform_powerpc(p);
 
-       if (config->ipmi_bootdev_persistent && platform->clear_ipmi_bootdev)
+       if (!config->ipmi_bootdev_persistent && platform->clear_ipmi_bootdev)
                platform->clear_ipmi_bootdev(platform);
 }