aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-add.c
diff options
context:
space:
mode:
authorYanfei Xu <[email protected]>2024-08-28 16:42:31 +0800
committerDave Jiang <[email protected]>2024-09-09 11:33:44 -0700
commit3f9e07531778ce66e0100d93f482e9a299d10d8d (patch)
tree5161bf1ba3eb14cb8b209197441ff8c94b4c2768 /lib/crypto/mpi/mpi-add.c
parent99bf0eebc75c9085440d6dca014724e7e49b5116 (diff)
cxl/pci: simplify the check of mem_enabled in cxl_hdm_decode_init()
Cases can be divided into two categories which are DVSEC range enabled and not enabled when HDM decoders exist but is not enabled. To avoid checking info->mem_enabled, which indicates the enablement of DVSEC range, every time, we can check !info->mem_enabled once in advance. This simplification can make the code clearer. No functional change intended. Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Yanfei Xu <[email protected]> Reviewed-by: Alison Schofield <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Dave Jiang <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions