]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
RDMA/cm: Use specific keyword to check define
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 20 Oct 2019 07:15:55 +0000 (10:15 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 28 Oct 2019 13:15:10 +0000 (10:15 -0300)
There is a specific define keyword to check if define exists or not,
let's use it instead of open-coded variant.

Link: https://lore.kernel.org/r/20191020071559.9743-3-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cm_msgs.h
include/rdma/ib_cm.h

index 3d16d614aff649fb6eec09dd0e5ba89c3e36b093..0a9e2d3fb9df3af7c6f1211d40b81948dd064968 100644 (file)
@@ -31,7 +31,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS THE
  * SOFTWARE.
  */
-#if !defined(CM_MSGS_H)
+#ifndef CM_MSGS_H
 #define CM_MSGS_H
 
 #include <rdma/ib_mad.h>
index 49f4f75499b3eb46487b1c93b9fc7f23abcc18df..5dc4ec9865272d498044d80c8af4734ad99b4a7e 100644 (file)
@@ -32,7 +32,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  * SOFTWARE.
  */
-#if !defined(IB_CM_H)
+#ifndef IB_CM_H
 #define IB_CM_H
 
 #include <rdma/ib_mad.h>