From 9bfb115b797cdb4febb56e2134f2c8f98a2a8bcd Mon Sep 17 00:00:00 2001 From: doktornotor Date: Sun, 5 Mar 2017 17:29:28 +0100 Subject: Remove useless config_lock()/config_unlock() calls --- src/usr/local/www/diag_smart.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/usr/local/www') diff --git a/src/usr/local/www/diag_smart.php b/src/usr/local/www/diag_smart.php index 22f6062..8cf5d45 100644 --- a/src/usr/local/www/diag_smart.php +++ b/src/usr/local/www/diag_smart.php @@ -268,7 +268,6 @@ switch ($action) { $config['system']['smartmonemail'] = $_POST['smartmonemail']; write_config(); $retval = 0; - config_lock(); if (stristr($retval, "error") != true) { $savemsg = get_std_save_message($retval); $style = 'success'; @@ -276,7 +275,6 @@ switch ($action) { $savemsg = $retval; $style='danger'; } - config_unlock(); // Write the changes to the smartd.conf file update_email($_POST['smartmonemail']); // Send sig HUP to smartd, rereads the config file -- cgit v1.1