[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250714133311.95698-1-ysk@kzalloc.com>
Date: Mon, 14 Jul 2025 22:33:11 +0900
From: Yunseong Kim <ysk@...lloc.com>
To: Mauro Carvalho Chehab <mchehab@...nel.org>,
Hans Verkuil <hverkuil@...all.nl>,
Matthew Majewski <mattwmajewski@...il.com>,
Shuah Khan <skhan@...uxfoundation.org>,
Uwe Kleine-König <u.kleine-koenig@...libre.com>
Cc: Helen Koike <helen.fornazier@...il.com>,
42.4.sejin@...il.com,
linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org,
Yunseong Kim <ysk@...lloc.com>
Subject: [PATCH] media: vim2m: remove unused CLIP macro
The CLIP macro, which was used to clamp color component values to the
[0, 255] range, is no longer used anywhere in the vim2m driver. Remove it
to clean up the code and avoid confusion.
The following issues were reported by checkpatch:
ERROR: Macros with complex values should be enclosed in parentheses
Signed-off-by: Yunseong Kim <ysk@...lloc.com>
---
drivers/media/test-drivers/vim2m.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/media/test-drivers/vim2m.c b/drivers/media/test-drivers/vim2m.c
index 1d1a9e768505..97cab9c558e7 100644
--- a/drivers/media/test-drivers/vim2m.c
+++ b/drivers/media/test-drivers/vim2m.c
@@ -268,9 +268,6 @@ static const char *type_name(enum v4l2_buf_type type)
}
}
-#define CLIP(__color) \
- (u8)(((__color) > 0xff) ? 0xff : (((__color) < 0) ? 0 : (__color)))
-
static void copy_line(struct vim2m_q_data *q_data_out,
u8 *src, u8 *dst, bool reverse)
{
--
2.39.5
Powered by blists - more mailing lists