diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-04 23:36:00 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-14 11:00:49 +0100 |
commit | 2c3a3ca76a57efa1cd825d140fb26fdec3482ee8 (patch) | |
tree | eb31dec848781653839e1328a8fdb4f276ce47c4 /signal-composer-binding | |
parent | 683e2cab5aeabb99d9b3c428073819366f3db709 (diff) |
Useless tests against uninitialized value
Values has to be set.
Change-Id: Ia8fcd23e68b79de5cd0316c81341ac41643750b5
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding')
-rw-r--r-- | signal-composer-binding/signal.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/signal-composer-binding/signal.cpp b/signal-composer-binding/signal.cpp index ab8723e..e7156dc 100644 --- a/signal-composer-binding/signal.cpp +++ b/signal-composer-binding/signal.cpp @@ -144,10 +144,8 @@ struct signalCBT* Signal::get_context() { struct signalCBT* ctx = new struct signalCBT; - if(!ctx->searchNsetSignalValue) - {ctx->searchNsetSignalValue = searchNsetSignalValueHandle;} - if(!ctx->setSignalValue) - {ctx->setSignalValue = setSignalValueHandle;} + ctx->searchNsetSignalValue = searchNsetSignalValueHandle; + ctx->setSignalValue = setSignalValueHandle; ctx->aSignal = (void*)this; return ctx; |