aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorDmitry Baryshkov <[email protected]>2022-06-27 19:54:13 +0300
committerDmitry Baryshkov <[email protected]>2022-07-04 21:05:29 +0300
commit94a9e05228c8624fbb08f4d8b2775dd0dc588f76 (patch)
treedafe3b1e03506fbbb1add204cf2ea4a69ac5a62c /lib/mpi/mpi-mod.c
parentefc7617086bf3ce5a782fcc926947d73788316c5 (diff)
drm/msm/dp: use ARRAY_SIZE for calculating num_descs
If for some reason the msm_dp_config::descs array starts from non-zero index or contains the hole, setting the msm_dp_config::num_descs might be not that obvious and error-prone. Use ARRAY_SIZE to set this field rather than encoding the value manually. Reported-by: Kuogee Hsieh <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Reviewed-by: Kuogee Hsieh <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/491399/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions