Commit 942b7e65 authored by Felix Beck's avatar Felix Beck Committed by Martin Schwidefsky

[S390] zcrypt: Improve some comments

Improve the comments for switch cases without a break. This fixes
some warnings of a code checker tool.
Signed-off-by: default avatarFelix Beck <felix.beck@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 6458abc9
...@@ -561,7 +561,8 @@ static int convert_response_ica(struct zcrypt_device *zdev, ...@@ -561,7 +561,8 @@ static int convert_response_ica(struct zcrypt_device *zdev,
if (msg->cprbx.cprb_ver_id == 0x02) if (msg->cprbx.cprb_ver_id == 0x02)
return convert_type86_ica(zdev, reply, return convert_type86_ica(zdev, reply,
outputdata, outputdatalength); outputdata, outputdatalength);
/* no break, incorrect cprb version is an unknown response */ /* Fall through, no break, incorrect cprb version is an unknown
* response */
default: /* Unknown response type, this should NEVER EVER happen */ default: /* Unknown response type, this should NEVER EVER happen */
zdev->online = 0; zdev->online = 0;
return -EAGAIN; /* repeat the request on a different device. */ return -EAGAIN; /* repeat the request on a different device. */
...@@ -587,7 +588,8 @@ static int convert_response_xcrb(struct zcrypt_device *zdev, ...@@ -587,7 +588,8 @@ static int convert_response_xcrb(struct zcrypt_device *zdev,
} }
if (msg->cprbx.cprb_ver_id == 0x02) if (msg->cprbx.cprb_ver_id == 0x02)
return convert_type86_xcrb(zdev, reply, xcRB); return convert_type86_xcrb(zdev, reply, xcRB);
/* no break, incorrect cprb version is an unknown response */ /* Fall through, no break, incorrect cprb version is an unknown
* response */
default: /* Unknown response type, this should NEVER EVER happen */ default: /* Unknown response type, this should NEVER EVER happen */
xcRB->status = 0x0008044DL; /* HDD_InvalidParm */ xcRB->status = 0x0008044DL; /* HDD_InvalidParm */
zdev->online = 0; zdev->online = 0;
...@@ -610,7 +612,8 @@ static int convert_response_rng(struct zcrypt_device *zdev, ...@@ -610,7 +612,8 @@ static int convert_response_rng(struct zcrypt_device *zdev,
return -EINVAL; return -EINVAL;
if (msg->cprbx.cprb_ver_id == 0x02) if (msg->cprbx.cprb_ver_id == 0x02)
return convert_type86_rng(zdev, reply, data); return convert_type86_rng(zdev, reply, data);
/* no break, incorrect cprb version is an unknown response */ /* Fall through, no break, incorrect cprb version is an unknown
* response */
default: /* Unknown response type, this should NEVER EVER happen */ default: /* Unknown response type, this should NEVER EVER happen */
zdev->online = 0; zdev->online = 0;
return -EAGAIN; /* repeat the request on a different device. */ return -EAGAIN; /* repeat the request on a different device. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment