From: Yunseong Kim Date: Mon, 14 Jul 2025 13:33:11 +0000 (+0900) Subject: media: vim2m: remove unused CLIP macro X-Git-Tag: v6.18-rc1~133^2~250 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=419f151de0beb5eb5755ded57766481bddb6ad26;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/test-drivers/vim2m.c b/drivers/media/test-drivers/vim2m.c index 350b454b1e0d7..86c32699111ad 100644 --- a/drivers/media/test-drivers/vim2m.c +++ b/drivers/media/test-drivers/vim2m.c @@ -266,9 +266,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) {