aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/altera-stapl
diff options
context:
space:
mode:
authorKaixu Xia <kaixuxia@tencent.com>2020-11-14 00:14:31 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-09 19:53:03 +0100
commitb4f473cf4605e063f1250c6c7c37140cdd162353 (patch)
treedded7c07cff78ae02bfba606995e9c3267c58856 /drivers/misc/altera-stapl
parentfsi: Aspeed: Add mutex to protect HW access (diff)
downloadlinux-dev-b4f473cf4605e063f1250c6c7c37140cdd162353.tar.xz
linux-dev-b4f473cf4605e063f1250c6c7c37140cdd162353.zip
altera-stapl: remove the unreached switch case
The value of the variable status must be one of the 0, -EIO and -EILSEQ, so the switch case -ENODATA is unreached. Remove it. Reported-by: Tosk Robot <tencent_os_robot@tencent.com> Signed-off-by: Kaixu Xia <kaixuxia@tencent.com> Link: https://lore.kernel.org/r/1605284071-6901-1-git-send-email-kaixuxia@tencent.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/altera-stapl')
-rw-r--r--drivers/misc/altera-stapl/altera.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/misc/altera-stapl/altera.c b/drivers/misc/altera-stapl/altera.c
index 5bdf57472314..92c0611034b0 100644
--- a/drivers/misc/altera-stapl/altera.c
+++ b/drivers/misc/altera-stapl/altera.c
@@ -2265,11 +2265,6 @@ static int altera_check_crc(u8 *p, s32 program_size)
"actual %04x\n", __func__, local_expected,
local_actual);
break;
- case -ENODATA:
- printk(KERN_ERR "%s: expected CRC not found, "
- "actual CRC = %04x\n", __func__,
- local_actual);
- break;
case -EIO:
printk(KERN_ERR "%s: error: format isn't "
"recognized.\n", __func__);