]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
RDMA/nes: Use WARN()
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 3 Nov 2012 10:58:37 +0000 (10:58 +0000)
committerRoland Dreier <roland@purestorage.com>
Thu, 22 Nov 2012 08:49:15 +0000 (00:49 -0800)
commit079abea6a37fd3b4f7e1b7cf9e4d055463988753
treeba577a86e0783d6805a0f8b6da8baf52b9cabece
parentcecdcd5f24be8c532ad8dcbbd93c7b477cfd3413
RDMA/nes: Use WARN()

Use WARN() rather than printk() followed by WARN_ON(1), for conciseness.

A simplified version of the semantic patch that makes this transformation
is as follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression list es;
@@

-printk(
+WARN(1,
  es);
-WARN_ON(1);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
[ Remove extra KERN_ERR from WARN() format.  - Roland ]

Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/nes/nes_cm.c
drivers/infiniband/hw/nes/nes_mgt.c