From 8bea427f0f3f080350f7dc8ef60f67734d1d91d0 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 30 Jan 2013 17:53:56 +0400 Subject: [PATCH] system/setting_helpers.cpp: fix unused warning on apollo Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/ced8b191b173990b223134ba869ac32123a7f4ce Author: [CST] Focus Date: 2013-01-30 (Wed, 30 Jan 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/system/setting_helpers.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/system/setting_helpers.cpp b/src/system/setting_helpers.cpp index 8ceabf919..9b8cc81a9 100644 --- a/src/system/setting_helpers.cpp +++ b/src/system/setting_helpers.cpp @@ -495,11 +495,9 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK void CFanControlNotifier::setSpeed(unsigned int speed) { -#ifndef BOXMODEL_APOLLO - int cfd; - printf("FAN Speed %d\n", speed); - cfd = open("/dev/cs_control", O_RDONLY); +#ifndef BOXMODEL_APOLLO + int cfd = open("/dev/cs_control", O_RDONLY); if(cfd < 0) { perror("Cannot open /dev/cs_control"); return;