From f204791cd6cf5998b04ea9df2d8de37c89adda56 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 13 Dec 2019 10:09:16 -0500 Subject: [PATCH] pan/midgard: Remove unused ld/st packing hepers Identified by cppcheck. Signed-off-by: Alyssa Rosenzweig --- src/panfrost/midgard/helpers.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/panfrost/midgard/helpers.h b/src/panfrost/midgard/helpers.h index 9cfb9fe780f..cf70884bf45 100644 --- a/src/panfrost/midgard/helpers.h +++ b/src/panfrost/midgard/helpers.h @@ -323,22 +323,4 @@ midgard_ldst_reg(unsigned reg, unsigned component) return packed; } -/* Unpacks a load/store argument */ - -static inline midgard_ldst_register_select -midgard_ldst_select(uint8_t u) -{ - midgard_ldst_register_select sel; - memcpy(&sel, &u, sizeof(u)); - return sel; -} - -static inline uint8_t -midgard_ldst_pack(midgard_ldst_register_select sel) -{ - uint8_t packed; - memcpy(&packed, &sel, sizeof(packed)); - return packed; -} - #endif -- 2.30.2