From f3ded3782c565856b6e0174fd3fdaeee1b8dadcf Mon Sep 17 00:00:00 2001 From: dp-arm Date: Tue, 31 Jan 2017 10:54:39 +0000 Subject: [PATCH] tbbr: Simplify conditional These are equivalent so use the reduced form. Change-Id: I40ca097411b9abab69985b8e4dbccf7582eae49e Signed-off-by: dp-arm --- plat/common/tbbr/plat_tbbr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/common/tbbr/plat_tbbr.c b/plat/common/tbbr/plat_tbbr.c index 475564a636..fde4d54441 100644 --- a/plat/common/tbbr/plat_tbbr.c +++ b/plat/common/tbbr/plat_tbbr.c @@ -60,7 +60,7 @@ int plat_set_nv_ctr2(void *cookie, const auth_img_desc_t *img_desc, * has been signed with the ROT key. Non Trusted NV counter * updates are unconditional. */ - if (!trusted_nv_ctr || (trusted_nv_ctr && img_desc->parent == NULL)) + if (!trusted_nv_ctr || img_desc->parent == NULL) return plat_set_nv_ctr(cookie, nv_ctr); /*