]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Removed the silly assignment oscilloscope_t *o = o
authorkonradlorincz <konradlorincz>
Thu, 10 Jul 2008 23:09:58 +0000 (23:09 +0000)
committerkonradlorincz <konradlorincz>
Thu, 10 Jul 2008 23:09:58 +0000 (23:09 +0000)
apps/tosthreads/capps/TestCollection/TestCollection.c

index 75da72871f886ef6b17fb27fc3fc351e041b1276..35e6a8007e70651af573f5b0c4ccf6733811637d 100644 (file)
@@ -76,8 +76,7 @@ void tosthread_main(void* arg) {
       
     for (;;) {
       if (reading == NREADINGS) {
-        oscilloscope_t *o = o;
-        o = (oscilloscope_t *) collectionGetPayload(&sendbuf, sizeof(oscilloscope_t));
+        oscilloscope_t *o = (oscilloscope_t *) collectionGetPayload(&sendbuf, sizeof(oscilloscope_t));
         if (o == NULL) {
           fatal_problem();
           return;