[Mesa-dev] [PATCH] ilo: move `const` attribute to be useful
Eric Engestrom
eric.engestrom at imgtec.com
Wed Aug 17 10:57:13 UTC 2016
The duplicate `const` was simply being ignored, but const'ing the pointer can be
a weak but useful protection, so let's do that instead.
Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
src/gallium/drivers/ilo/core/ilo_state_raster.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/ilo/core/ilo_state_raster.c b/src/gallium/drivers/ilo/core/ilo_state_raster.c
index a694f71..8eeb98a 100644
--- a/src/gallium/drivers/ilo/core/ilo_state_raster.c
+++ b/src/gallium/drivers/ilo/core/ilo_state_raster.c
@@ -1202,7 +1202,7 @@ ilo_state_sample_pattern_get_offset(const struct ilo_state_sample_pattern *patte
uint8_t sample_count, uint8_t sample_index,
uint8_t *x, uint8_t *y)
{
- const const uint8_t *packed =
+ const uint8_t * const packed =
ilo_state_sample_pattern_get_packed_offsets(pattern, dev, sample_count);
assert(sample_index < sample_count);
--
2.9.2
More information about the mesa-dev
mailing list