diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2012-11-03 10:58:37 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-11-22 08:49:15 (GMT) |
commit | 079abea6a37fd3b4f7e1b7cf9e4d055463988753 (patch) | |
tree | ba577a86e0783d6805a0f8b6da8baf52b9cabece /Kbuild | |
parent | cecdcd5f24be8c532ad8dcbbd93c7b477cfd3413 (diff) | |
download | linux-079abea6a37fd3b4f7e1b7cf9e4d055463988753.tar.xz |
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>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions