From 5ad6c5b44969a650b89aa990cc9b235e0d4bcbc4 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 28 Nov 2013 14:06:42 +0200 Subject: [PATCH] tools/smp-tester: Remove unnecessary preq and pres variables --- tools/smp-tester.c | 6 ++---- 1 file 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; -- 2.11.0