test_firmware-remove-unnecessary-test_fw_mutex-in-test_dev_config_show_xxx.patch removed from -mm tree
The patch titled
Subject: test_firmware: remove unnecessary test_fw_mutex in test_dev_config_show_xxx
has been removed from the -mm tree. Its filename was
test_firmware-remove-unnecessary-test_fw_mutex-in-test_dev_config_show_xxx.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Scott Branden <[email protected]>
Subject: test_firmware: remove unnecessary test_fw_mutex in test_dev_config_show_xxx
Remove unnecessary use of test_fw_mutex in test_dev_config_show_xxx functions that show simple bool, int, and u8.
Signed-off-by Scott Branden <[email protected]>
Reviewed-by Kees Cook <[email protected]>
Reviewed-by Luis Chamberlain <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
lib/test_firmware.c | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-)
lib/test_firmware.c renamed from lib/test_firmware.c~test_firmware-remove-unnecessary-test_fw_mutex-in-test_dev_config_show_xxx +3 -22
@@ -310,27 +310,13 @@ static int test_dev_config_update_bool(creturn ret; } -static ssize_t -test_dev_config_show_bool (char *buf, -bool config) +static ssize_t test_dev_config_show_bool (char *buf,bool val) { -bool val; - -mutex_lock (&test_fw_mutex); - val = config; -mutex_unlock (&test_fw_mutex); -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); } -static ssize_t test_dev_config_show_int (char *buf,int cfg) +static ssize_t test_dev_config_show_int (char *buf,int val) { -int val; - -mutex_lock (&test_fw_mutex); - val = cfg; -mutex_unlock (&test_fw_mutex); -return snprintf (buf,PAGE_SIZE ,"%d\n" , val); }
@@ -354,14 +340,8 @@ static int test_dev_config_update_u8(conreturn size; } -static ssize_t test_dev_config_show_u8 (char *buf,u8 cfg) +static ssize_t test_dev_config_show_u8 (char *buf,u8 val) { -u8 val; - -mutex_lock (&test_fw_mutex); - val = cfg; -mutex_unlock (&test_fw_mutex);