summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2017-03-05 17:29:28 +0100
committerGitHub <noreply@github.com>2017-03-05 17:29:28 +0100
commit9bfb115b797cdb4febb56e2134f2c8f98a2a8bcd (patch)
treeda8a87b14312428b5bc61f811583811cef9c3afe /src/usr/local/www
parentadb1945666136a26d1c69e7b3795160007bf5648 (diff)
downloadpfsense-9bfb115b797cdb4febb56e2134f2c8f98a2a8bcd.zip
pfsense-9bfb115b797cdb4febb56e2134f2c8f98a2a8bcd.tar.gz
Remove useless config_lock()/config_unlock() calls
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/diag_smart.php2
1 files changed, 0 insertions, 2 deletions
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
OpenPOWER on IntegriCloud