cppcheck: return value always 0

Identical condition and return expression 'rc', return value is
always 0.

Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11508
This commit is contained in:
Brian Behlendorf 2021-01-22 21:26:41 -08:00
parent 2cdd75bed7
commit a06ba74a1e

View File

@ -486,7 +486,7 @@ proc_kstat_open(struct inode *inode, struct file *filp)
f = filp->private_data; f = filp->private_data;
f->private = PDE_DATA(inode); f->private = PDE_DATA(inode);
return (rc); return (0);
} }
static ssize_t static ssize_t