s390/zcrypt: use fallthrough;
Convert the various uses of fallthrough comments to fallthrough; Done via script Link: https://lore.kernel.org/lkml/b56602fcf79f849e733e7b521bb0e17895d390fa.1582230379.git.joe.com/ Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
Родитель
2c7749b905
Коммит
fcf0220abc
|
@ -360,7 +360,7 @@ void ap_wait(enum ap_wait wait)
|
|||
wake_up(&ap_poll_wait);
|
||||
break;
|
||||
}
|
||||
/* Fall through */
|
||||
fallthrough;
|
||||
case AP_WAIT_TIMEOUT:
|
||||
spin_lock_bh(&ap_poll_timer_lock);
|
||||
if (!hrtimer_is_queued(&ap_poll_timer)) {
|
||||
|
|
|
@ -152,7 +152,7 @@ static struct ap_queue_status ap_sm_recv(struct ap_queue *aq)
|
|||
ap_msg->receive(aq, ap_msg, aq->reply);
|
||||
break;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case AP_RESPONSE_NO_PENDING_REPLY:
|
||||
if (!status.queue_empty || aq->queue_count <= 0)
|
||||
break;
|
||||
|
@ -219,7 +219,7 @@ static enum ap_wait ap_sm_suspend_read(struct ap_queue *aq)
|
|||
case AP_RESPONSE_NORMAL:
|
||||
if (aq->queue_count > 0)
|
||||
return AP_WAIT_AGAIN;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
default:
|
||||
return AP_WAIT_NONE;
|
||||
}
|
||||
|
@ -254,7 +254,7 @@ static enum ap_wait ap_sm_write(struct ap_queue *aq)
|
|||
aq->state = AP_STATE_WORKING;
|
||||
return AP_WAIT_AGAIN;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case AP_RESPONSE_Q_FULL:
|
||||
aq->state = AP_STATE_QUEUE_FULL;
|
||||
return AP_WAIT_INTERRUPT;
|
||||
|
@ -380,7 +380,7 @@ static enum ap_wait ap_sm_setirq_wait(struct ap_queue *aq)
|
|||
case AP_RESPONSE_NORMAL:
|
||||
if (aq->queue_count > 0)
|
||||
return AP_WAIT_AGAIN;
|
||||
/* fallthrough */
|
||||
fallthrough;
|
||||
case AP_RESPONSE_NO_PENDING_REPLY:
|
||||
return AP_WAIT_TIMEOUT;
|
||||
default:
|
||||
|
|
|
@ -801,7 +801,7 @@ static int convert_response_ica(struct zcrypt_queue *zq,
|
|||
if (msg->cprbx.cprb_ver_id == 0x02)
|
||||
return convert_type86_ica(zq, reply,
|
||||
outputdata, outputdatalength);
|
||||
/* fall through - wrong cprb version is an unknown response */
|
||||
fallthrough; /* wrong cprb version is an unknown response */
|
||||
default: /* Unknown response type, this should NEVER EVER happen */
|
||||
zq->online = 0;
|
||||
pr_err("Cryptographic device %02x.%04x failed and was set offline\n",
|
||||
|
@ -834,7 +834,7 @@ static int convert_response_xcrb(struct zcrypt_queue *zq,
|
|||
}
|
||||
if (msg->cprbx.cprb_ver_id == 0x02)
|
||||
return convert_type86_xcrb(zq, reply, xcRB);
|
||||
/* fall through - wrong cprb version is an unknown response */
|
||||
fallthrough; /* wrong cprb version is an unknown response */
|
||||
default: /* Unknown response type, this should NEVER EVER happen */
|
||||
xcRB->status = 0x0008044DL; /* HDD_InvalidParm */
|
||||
zq->online = 0;
|
||||
|
@ -864,7 +864,7 @@ static int convert_response_ep11_xcrb(struct zcrypt_queue *zq,
|
|||
return convert_error(zq, reply);
|
||||
if (msg->cprbx.cprb_ver_id == 0x04)
|
||||
return convert_type86_ep11_xcrb(zq, reply, xcRB);
|
||||
/* fall through - wrong cprb version is an unknown resp */
|
||||
fallthrough; /* wrong cprb version is an unknown resp */
|
||||
default: /* Unknown response type, this should NEVER EVER happen */
|
||||
zq->online = 0;
|
||||
pr_err("Cryptographic device %02x.%04x failed and was set offline\n",
|
||||
|
@ -894,7 +894,7 @@ static int convert_response_rng(struct zcrypt_queue *zq,
|
|||
return -EINVAL;
|
||||
if (msg->cprbx.cprb_ver_id == 0x02)
|
||||
return convert_type86_rng(zq, reply, data);
|
||||
/* fall through - wrong cprb version is an unknown response */
|
||||
fallthrough; /* wrong cprb version is an unknown response */
|
||||
default: /* Unknown response type, this should NEVER EVER happen */
|
||||
zq->online = 0;
|
||||
pr_err("Cryptographic device %02x.%04x failed and was set offline\n",
|
||||
|
|
Загрузка…
Ссылка в новой задаче