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.engest...@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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to