diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-11-28 14:06:42 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-11-28 16:36:35 +0200 |
commit | 5ad6c5b44969a650b89aa990cc9b235e0d4bcbc4 (patch) | |
tree | 3c6e50d027f53ecff592d69da0600fcc28772501 /tools/smp-tester.c | |
parent | 866daa8ef1fa2cd7f602be0d9af954d8087a56ee (diff) | |
download | bluez-5ad6c5b44969a650b89aa990cc9b235e0d4bcbc4.tar.gz |
tools/smp-tester: Remove unnecessary preq and pres variables
Diffstat (limited to 'tools/smp-tester.c')
-rw-r--r-- | tools/smp-tester.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/smp-tester.c b/tools/smp-tester.c index 97e16b269..d03cfc409 100644 --- a/tools/smp-tester.c +++ b/tools/smp-tester.c @@ -248,15 +248,13 @@ static int smp_c1(uint8_t r[16], uint8_t res[16]) { struct test_data *data = tester_get_data(); uint8_t p1[16], p2[16]; - uint8_t *preq = data->smp_preq; - uint8_t *pres = data->smp_prsp; int err; memset(p1, 0, 16); /* p1 = pres || preq || _rat || _iat */ - swap56(pres, p1); - swap56(preq, p1 + 7); + swap56(data->smp_prsp, p1); + swap56(data->smp_preq, p1 + 7); p1[14] = data->ra_type; p1[15] = data->ia_type; |