Fix clang-tidy-11 errors in NBNXM module, part 1
[alexxy/gromacs.git] / src / gromacs / nbnxm / nbnxm_geometry.h
index 033590999686cb626f9b8dde480b891acc005199..66238857881427db03fd644c3149591c4a0aef43 100644 (file)
@@ -2,7 +2,7 @@
  * This file is part of the GROMACS molecular simulation package.
  *
  * Copyright (c) 2012,2013,2014,2015,2016 by the GROMACS development team.
- * Copyright (c) 2017,2018,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2017,2018,2019,2020,2021, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -58,9 +58,8 @@
  */
 static inline int get_2log(int n)
 {
-    int log2;
-
-    log2 = 0;
+    // TODO: Replace with gmx::Log2I?
+    int log2 = 0;
     while ((1 << log2) < n)
     {
         log2++;