diff options
author | Xavier Roche <xavrock.os@gmail.com> | 2013-05-29 14:53:00 +0200 |
---|---|---|
committer | Xavier Roche <xavrock.os@gmail.com> | 2013-05-29 14:53:00 +0200 |
commit | efc9ea5b5fbffc422196e9c3a675561a1fc2bdac (patch) | |
tree | d3d4dad5f90972e87bc845ac98922643e9adf885 | |
parent | fe9d9997b51180401118da8d09e911abc1495e9c (diff) | |
download | haptic-efc9ea5b5fbffc422196e9c3a675561a1fc2bdac.tar.gz haptic-efc9ea5b5fbffc422196e9c3a675561a1fc2bdac.tar.bz2 haptic-efc9ea5b5fbffc422196e9c3a675561a1fc2bdac.zip |
Removing unused var in code
- remove unused var in src/haptic.c
-rw-r--r-- | src/haptic.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/haptic.c b/src/haptic.c index 186a92f..35a0a59 100644 --- a/src/haptic.c +++ b/src/haptic.c @@ -114,8 +114,8 @@ int haptic_initialize() for(i=0; i<=max_device; i++){ id = device_haptic_open(_DEV[i], 0); if(id < 0) { - for (j=i; i>=0; i--){ - device_haptic_close(haptic_ids[i]); + for (j=i; j>=0; j--){ + device_haptic_close(haptic_ids[j]); } RETURN_ERR(HAPTIC_ERROR_OPERATION_FAILED); } @@ -134,13 +134,15 @@ int haptic_initialize() int haptic_deinitialize() { - int err, i; +// int err, i; + int i; if(!initialize) RETURN_ERR(HAPTIC_ERROR_NOT_INITIALIZED); for(i=0; i<=max_device; i++){ - err = device_haptic_close(haptic_ids[i]); +// err = device_haptic_close(haptic_ids[i]); + device_haptic_close(haptic_ids[i]); } initialize = 0; if(haptic_ids != NULL) |