Remove rt_svc_descs pointer from inner scope
authorDaniel Boulby <daniel.boulby@arm.com>
Thu, 3 May 2018 16:11:04 +0000 (17:11 +0100)
committerDaniel Boulby <daniel.boulby@arm.com>
Fri, 25 May 2018 12:30:57 +0000 (13:30 +0100)
A pointer to rt_svc_desc_t was defined both in the
function and globally. The innermost definition
hid the global definition which is the one we want
to use so remove the innermost definition to prevent
this

Change-Id: Idabdbc0947178ae83224bd17a9b170df7c278d51
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
common/runtime_svc.c

index f997c74a0444363e54ff51e9e3d502bff9277d8a..e0d56095d62121ea1f59cf8d1e1929a4e149580c 100644 (file)
@@ -38,7 +38,6 @@ uintptr_t handle_runtime_svc(uint32_t smc_fid,
        u_register_t x1, x2, x3, x4;
        int index;
        unsigned int idx;
-       const rt_svc_desc_t *rt_svc_descs;
 
        assert(handle);
        idx = get_unique_oen_from_smc_fid(smc_fid);