remove unused variable "overlay_lock" that introduced in
a75774679f28 ("OF: DT-Overlay configfs interface (v8)")
to fix below compile error:

| drivers/of/configfs.c:46:21: error: 'overlay_lock' defined but not used 
[-Werror=unused-variable]
|    46 | static DEFINE_MUTEX(overlay_lock);
|       |                     ^~~~~~~~~~~~

Signed-off-by: Liwei Song <[email protected]>
---
 drivers/of/configfs.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/of/configfs.c b/drivers/of/configfs.c
index 6d8f58e5cb5b..64caba77a719 100644
--- a/drivers/of/configfs.c
+++ b/drivers/of/configfs.c
@@ -43,8 +43,6 @@ struct cfs_overlay_item {
        void                    *mem;
 };
 
-static DEFINE_MUTEX(overlay_lock);
-
 static int create_overlay(struct cfs_overlay_item *overlay, void *blob)
 {
        int err;
-- 
2.36.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11459): 
https://lists.yoctoproject.org/g/linux-yocto/message/11459
Mute This Topic: https://lists.yoctoproject.org/mt/92353202/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to