From 7d96cf9b969d15cc5285b960255a357fd9bd682c Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 19 Feb 2026 14:01:28 -0800 Subject: [PATCH] Remove copy/paste duplicate op flag check. The exact 2 lines here are repeated. It suggests that there may have been the intent of an additional check, but, there isn't anything left from what I can see that needs checking here. Signed-off-by: Auke Kok --- kmod/src/ioctl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kmod/src/ioctl.c b/kmod/src/ioctl.c index 7a73d4de..ea31321c 100644 --- a/kmod/src/ioctl.c +++ b/kmod/src/ioctl.c @@ -415,8 +415,6 @@ static long scoutfs_ioc_data_wait_err(struct file *file, unsigned long arg) return 0; if ((args.op & SCOUTFS_IOC_DWO_UNKNOWN) || !IS_ERR_VALUE(args.err)) return -EINVAL; - if ((args.op & SCOUTFS_IOC_DWO_UNKNOWN) || !IS_ERR_VALUE(args.err)) - return -EINVAL; trace_scoutfs_ioc_data_wait_err(sb, &args);