[PATCH v4] dma-buf: heap: Replace nested max() with single max3()

2025-03-17 Thread feng.wei8
From: FengWei Use max3() macro instead of nesting max() to simplify the return statement. Signed-off-by: FengWei --- v3 -> v4 fix the format of this patch. drivers/dma-buf/dma-heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-bu

[PATCH] drm/radeon/uvd: Replace nested max() with single max3()

2025-03-16 Thread feng.wei8
From: FengWei Use max3() macro instead of nesting max() to simplify the return statement. Signed-off-by: FengWei --- drivers/gpu/drm/radeon/radeon_uvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_uvd.c b/drivers/gpu/drm/radeon/radeon_uvd.

[PATCH v2] dma-buf: heaps: Replace nested max() with single max3()

2025-03-16 Thread feng.wei8
From: FengWei Use max3() macro instead of nesting max() to simplify the return statement. Signed-off-by: FengWei --- v1 -> v2 perfect the prefix drivers/dma-buf/dma-heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c

[PATCH v3] dma-buf: heaps: Replace nested max() with single max3()

2025-03-16 Thread feng.wei8
From: FengWei Use max3() macro instead of nesting max() to simplify the return statement. Signed-off-by: FengWei --- v2 -> v3 fix the format of this patch drivers/dma-buf/dma-heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf

[PATCH] dma-buf: Replace nested max() with single max3()

2025-03-15 Thread feng.wei8
From: FengWei Use max3() macro instead of nesting max() to simplify the return statement. Signed-off-by: FengWei --- drivers/dma-buf/dma-heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c index 3cbe87d4a464..96cb9a

[PATCH] Replace nested max() with single max3()

2025-03-15 Thread feng.wei8
From: FengWei Use max3() macro instead of nesting max() to simplify the return statement. Signed-off-by: FengWei --- drivers/dma-buf/dma-heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c index 3cbe87d4a464..96cb9a

[PATCH] drm: Replace nested max() with single max3()

2025-03-15 Thread feng.wei8
From: FengWei Use max3() macro instead of nesting max() to simplify the return statement. Signed-off-by: FengWei --- drivers/gpu/drm/drm_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c index f593dc569d31..115