diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2015-12-04 15:27:18 +1100 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2015-12-06 17:03:17 +0100 |
commit | be51020f2ad2ce8e8dc4d0f3a79186000fb01454 (patch) | |
tree | 5404db5712d9284eaf0e96bda9d90fad42ef46a1 /src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c | |
parent | 7e43a280793af50e826fb6183670de8e3d427d74 (diff) |
gallium/drivers/nouveau: Make use of ARRAY_SIZE macro
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c b/src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c index 9139bc1c911..4392f62c530 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c @@ -56,7 +56,7 @@ nvc0_decoder_bsp(struct nouveau_vp3_decoder *dec, union pipe_desc desc, #endif { dec->bitplane_bo, NOUVEAU_BO_RDWR | NOUVEAU_BO_VRAM }, }; - int num_refs = sizeof(bo_refs)/sizeof(*bo_refs); + int num_refs = ARRAY_SIZE(bo_refs); if (!dec->bitplane_bo) num_refs--; |