[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1580821634-15246-2-git-send-email-qiwuchen55@gmail.com>
Date: Tue, 4 Feb 2020 21:07:14 +0800
From: qiwuchen55@...il.com
To: keescook@...omium.org, anton@...msg.org, ccross@...roid.com,
tony.luck@...el.com
Cc: linux-kernel@...r.kernel.org, chenqiwu <chenqiwu@...omi.com>
Subject: [PATCH 2/2] pstore/ram: remove unnecessary ramoops_unregister_dummy()
From: chenqiwu <chenqiwu@...omi.com>
Remove unnecessary ramoops_unregister_dummy() if ramoops
platform device register failed.
Signed-off-by: chenqiwu <chenqiwu@...omi.com>
---
fs/pstore/ram.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 013486b..7956221 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -963,7 +963,6 @@ static void __init ramoops_register_dummy(void)
pr_info("could not create platform device: %ld\n",
PTR_ERR(dummy));
dummy = NULL;
- ramoops_unregister_dummy();
}
}
--
1.9.1
Powered by blists - more mailing lists