From 12a39a13db6fadccc0ff1895a6899ea0242b8a56 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Wed, 24 Jun 2009 18:24:20 +0000 Subject: [PATCH] read back the written value and display --- tools/tools/ath/athpoke/athpoke.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/tools/ath/athpoke/athpoke.c b/tools/tools/ath/athpoke/athpoke.c index 2d87154a3514..82ec550c2bef 100644 --- a/tools/tools/ath/athpoke/athpoke.c +++ b/tools/tools/ath/athpoke/athpoke.c @@ -105,8 +105,7 @@ main(int argc, char *argv[]) reg = (dr != NULL) ? dr->addr : (uint32_t) strtoul(argv[0], NULL, 0); if (cp != NULL) regwrite(s, &atd, reg, (uint32_t) strtoul(cp, NULL, 0)); - else - printf("%s = %08x\n", argv[0], regread(s, &atd, reg)); + printf("%s = %08x\n", argv[0], regread(s, &atd, reg)); } return 0; }