aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/s390/kernel/ipl.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c
index 505fec06e634..2b901fb8193b 100644
--- a/arch/s390/kernel/ipl.c
+++ b/arch/s390/kernel/ipl.c
@@ -966,7 +966,6 @@ static void reipl_run(struct shutdown_trigger *trigger)
966 diag308(DIAG308_IPL, NULL); 966 diag308(DIAG308_IPL, NULL);
967 break; 967 break;
968 case REIPL_METHOD_FCP_DUMP: 968 case REIPL_METHOD_FCP_DUMP:
969 default:
970 break; 969 break;
971 } 970 }
972 disabled_wait((unsigned long) __builtin_return_address(0)); 971 disabled_wait((unsigned long) __builtin_return_address(0));
@@ -1075,10 +1074,12 @@ static int __init reipl_fcp_init(void)
1075{ 1074{
1076 int rc; 1075 int rc;
1077 1076
1078 if ((!diag308_set_works) && (ipl_info.type != IPL_TYPE_FCP)) 1077 if (!diag308_set_works) {
1079 return 0; 1078 if (ipl_info.type == IPL_TYPE_FCP)
1080 if ((!diag308_set_works) && (ipl_info.type == IPL_TYPE_FCP)) 1079 make_attrs_ro(reipl_fcp_attrs);
1081 make_attrs_ro(reipl_fcp_attrs); 1080 else
1081 return 0;
1082 }
1082 1083
1083 reipl_block_fcp = (void *) get_zeroed_page(GFP_KERNEL); 1084 reipl_block_fcp = (void *) get_zeroed_page(GFP_KERNEL);
1084 if (!reipl_block_fcp) 1085 if (!reipl_block_fcp)
@@ -1259,7 +1260,6 @@ static void dump_run(struct shutdown_trigger *trigger)
1259 diag308(DIAG308_DUMP, NULL); 1260 diag308(DIAG308_DUMP, NULL);
1260 break; 1261 break;
1261 case DUMP_METHOD_NONE: 1262 case DUMP_METHOD_NONE:
1262 default:
1263 return; 1263 return;
1264 } 1264 }
1265 printk(KERN_EMERG "Dump failed!\n"); 1265 printk(KERN_EMERG "Dump failed!\n");
@@ -1746,7 +1746,6 @@ void __init setup_ipl(void)
1746 sizeof(ipl_info.data.nss.name)); 1746 sizeof(ipl_info.data.nss.name));
1747 break; 1747 break;
1748 case IPL_TYPE_UNKNOWN: 1748 case IPL_TYPE_UNKNOWN:
1749 default:
1750 /* We have no info to copy */ 1749 /* We have no info to copy */
1751 break; 1750 break;
1752 } 1751 }