trusty: Fix reported misra violation
authorArve Hjønnevåg <arve@android.com>
Thu, 1 Mar 2018 19:38:18 +0000 (11:38 -0800)
committerArve Hjønnevåg <arve@android.com>
Thu, 1 Mar 2018 19:38:18 +0000 (11:38 -0800)
memset does not return a useful result here, so explitcitly ignore it

Change-Id: I33cd2228cadc280ee8e5ce3a4f8682dde9a7c16c

services/spd/trusty/trusty.c

index e27df154a6bb021253b9213ce5d8795f34ee095b..6d9cc28a6db19c1467b89742698bf0e30cf0582c 100644 (file)
@@ -428,7 +428,7 @@ static int32_t trusty_setup(void)
                                            DAIF_FIQ_BIT |
                                            DAIF_IRQ_BIT |
                                            DAIF_ABT_BIT);
-       memset(&ep_info->args, 0, sizeof(ep_info->args));
+       (void)memset(&ep_info->args, 0, sizeof(ep_info->args));
        plat_trusty_set_boot_args(&ep_info->args);
 
        /* register init handler */