projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85c5e0d
)
tpm/tpm_ibmvtpm: fix unreachable code warning (smatch warning)
author
Peter Huewe
<PeterHuewe@gmx.de>
Tue, 29 Oct 2013 00:59:57 +0000
(
01:59
+0100)
committer
Peter Huewe
<peterhuewe@gmx.de>
Mon, 6 Jan 2014 13:37:24 +0000
(14:37 +0100)
smatch complains:
drivers/char/tpm/tpm_ibmvtpm.c:510
ibmvtpm_crq_process() info: ignoring unreachable code.
-> The return is not necessary here, remove it
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_ibmvtpm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/tpm/tpm_ibmvtpm.c
b/drivers/char/tpm/tpm_ibmvtpm.c
index 2783a42aa73295406bee2ff845f5ae08a2d9c738..cab8d098095c7c04df0555c322ea116d972675e6 100644
(file)
--- a/
drivers/char/tpm/tpm_ibmvtpm.c
+++ b/
drivers/char/tpm/tpm_ibmvtpm.c
@@
-507,7
+507,6
@@
static void ibmvtpm_crq_process(struct ibmvtpm_crq *crq,
dev_err(ibmvtpm->dev, "Unknown crq message type: %d\n", crq->msg);
return;
}
- return;
case IBMVTPM_VALID_CMD:
switch (crq->msg) {
case VTPM_GET_RTCE_BUFFER_SIZE_RES: