From a06ba74a1e5f54f03cc59daeb350f456bbe9e91d Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 22 Jan 2021 21:26:41 -0800 Subject: [PATCH] cppcheck: return value always 0 Identical condition and return expression 'rc', return value is always 0. Reviewed-by: Ryan Moeller Signed-off-by: Brian Behlendorf Closes #11508 --- module/os/linux/spl/spl-kstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/os/linux/spl/spl-kstat.c b/module/os/linux/spl/spl-kstat.c index dbbf72c856..c7f1aadf78 100644 --- a/module/os/linux/spl/spl-kstat.c +++ b/module/os/linux/spl/spl-kstat.c @@ -486,7 +486,7 @@ proc_kstat_open(struct inode *inode, struct file *filp) f = filp->private_data; f->private = PDE_DATA(inode); - return (rc); + return (0); } static ssize_t