altera-stapl: remove the unreached switch case
authorKaixu Xia <kaixuxia@tencent.com>
Fri, 13 Nov 2020 16:14:31 +0000 (00:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 18:53:03 +0000 (19:53 +0100)
commitb4f473cf4605e063f1250c6c7c37140cdd162353
treedded7c07cff78ae02bfba606995e9c3267c58856
parentdfd7f2c1c532efaeff6084970bb60ec2f2e44191
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>
drivers/misc/altera-stapl/altera.c