carl9170 firmware: trivial checkpatch fixes
[carl9170fw.git] / tools / carlu / src / test.c
index e453eb37c7439a5e17b35fa9df55925edef7a2d8..bf49559fa057ee44908da1e4746eb05d263382dc 100644 (file)
@@ -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 <chunkeey@googlemail.com>
+ * Copyright 2009-2011 Christian Lamparter <chunkeey@googlemail.com>
  *
  * 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)