X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=inline;f=tools%2Fcarlu%2Fsrc%2Ftest.c;h=bf49559fa057ee44908da1e4746eb05d263382dc;hb=12cc2cc355d1dce3d50c78e0f680b3cda0c73dfe;hp=e453eb37c7439a5e17b35fa9df55925edef7a2d8;hpb=007045ac7c9822009b704b856e2f92934cca2401;p=carl9170fw.git diff --git a/tools/carlu/src/test.c b/tools/carlu/src/test.c index e453eb3..bf49559 100644 --- a/tools/carlu/src/test.c +++ b/tools/carlu/src/test.c @@ -1,9 +1,9 @@ /* - * carl9170user - userspace testing utility for ar9170 devices + * carlu - userspace testing utility for ar9170 devices * * Various tests * - * Copyright 2009, 2010 Christian Lamparter + * Copyright 2009-2011 Christian Lamparter * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -197,8 +197,8 @@ int carlu_gpio_test(struct carlu *ar) #define CHK(cmd) \ do { \ - int __err; \ - if ((__err = cmd)) \ + int __err = cmd; \ + if ((__err)) \ return __err; \ } while (0)