RDMA/cxgb3: use WARN
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 3 Nov 2012 10:58:29 +0000 (10:58 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 26 Nov 2012 19:08:16 +0000 (11:08 -0800)
commit5107c2a3d117de8219a53e622c0f1f1bc3f7d1ae
tree0923164ff79ddcdf1276647ad2dfd6c3c2ad2f38
parentc9795bd708e37ed4154e838a1f4576192eeeacca
RDMA/cxgb3: 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>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb3/iwch_cm.c